Added github pages deployment

This commit is contained in:
PartyDonut 2024-10-12 15:14:24 +02:00
parent c6d709abad
commit ec6d7aebfe

View file

@ -260,10 +260,16 @@ jobs:
echo "APP_NAME=$APP_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
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ env.APP_NAME }}-Web-${{ env.VERSION_NAME }}
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