mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
Added github pages deployment
This commit is contained in:
parent
c6d709abad
commit
ec6d7aebfe
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -260,10 +260,16 @@ jobs:
|
||||||
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
|
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
|
||||||
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
|
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
flutter build web
|
flutter build web --base-href /${{ github.event.repository.name }}/ --release --build-number=$GITHUB_RUN_NUMBER
|
||||||
|
|
||||||
- name: Archive web artifact
|
- name: Archive web artifact
|
||||||
uses: actions/upload-artifact@v4.0.0
|
uses: actions/upload-artifact@v4.0.0
|
||||||
with:
|
with:
|
||||||
name: ${{ env.APP_NAME }}-Web-${{ env.VERSION_NAME }}
|
name: ${{ env.APP_NAME }}-Web-${{ env.VERSION_NAME }}
|
||||||
path: build/web
|
path: build/web
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions
|
||||||
|
publish_dir: ./build/web
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue