-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.3 KB
/
catalog.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Catalog Web CI
on:
push:
paths:
- 'packages/catalog/**'
workflow_dispatch:
jobs:
check-formatting:
if: github.event_name == 'push'
uses: ./.github/workflows/shared-workflow.yaml
with:
package-name: catalog
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.3'
cache: true
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.pub-cache
packages/catalog/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('packages/catalog/pubspec.yaml') }}
- name: Enable melos
run: dart pub global activate melos
- name: Get packages
run: melos bootstrap
- name: Generate Files
run: melos generate
- name: Build Web
run: flutter build web --release --wasm --base-href "/cave/"
working-directory: packages/catalog
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/catalog/build/web