Merge pull request #84 from peiffer-innovations/dart_update_171988734… #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flutter Pages Deployer | |
on: | |
push: | |
branches: [main] | |
# paths: | |
# - .github/workflows/pages.yaml | |
# - pubspec.yaml | |
# - lib/** | |
# - example/** | |
jobs: | |
build_number: | |
runs-on: ubuntu-latest | |
outputs: | |
buildnumber: ${{ steps.buildnumber.outputs.build_number }} | |
steps: | |
- name: Generate Build Number | |
id: buildnumber | |
uses: onyxmueller/build-tag-number@v1 | |
with: | |
token: ${{secrets.GITHUB_TOKEN}} | |
- name: Build Number | |
run: echo "Build Number - $BUILD_NUMBER" | |
publish: | |
needs: build_number | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
- name: Validate | |
uses: peiffer-innovations/actions-flutter-validate@v1 | |
with: | |
generate_code: true | |
- name: Web | |
uses: peiffer-innovations/actions-flutter-deploy-pages@v1 | |
with: | |
build_mode: release | |
build_number: ${{ needs.build_number.outputs.buildnumber }} | |
deploy_path: web | |
repo_url: https://github.com/${{ github.repository }} | |
source_path: example | |
token: ${{ secrets.GITHUB_TOKEN }} |