Skip to content

chore: demo update to 2.1.2 #9

chore: demo update to 2.1.2

chore: demo update to 2.1.2 #9

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ "gh-pages" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: subosito/flutter-action@v1
with:
flutter-version: '3.27.4'
- run: flutter pub get
- name: Build
run: |
flutter build web \
--base-href=/Ghosten-Player/ \
--dart-define=BUILD_DATE=$(date "+%F")
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: ./build/web/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4