Skip to content

Commit

Permalink
Create web deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
WieFel committed Dec 27, 2024
1 parent c34c6cb commit 8014e41
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Deploy to web

on:
push:
tags:
- '*'

jobs:
deploy-for-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter config --enable-web
- run: flutter pub get
- name: Build for web
working-directory: example/
run: flutter build web --release
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: example/build/web # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch

0 comments on commit 8014e41

Please sign in to comment.