-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 941 Bytes
/
web.yml
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
name: Web build workflow
on:
workflow_run:
workflows: Test workflow
branches: main
types: completed
jobs:
build_web:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/[email protected]
- run: flutter config --enable-web
- run: flutter pub get
- run: flutter build web --release --base-href "/ygo_collection_manager/"
- run: |
cd build/web
git init
git config --global user.email [email protected]
git config --global user.name "Guillaume Roux"
git remote add origin https://${{secrets.commit_secret}}@github.com/TesteurManiak/ygo_collection_manager.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f