-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added branch deployment to netlify
- Loading branch information
1 parent
41fa5af
commit 317cc29
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Deploy Branch to Netlify | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build-web: | ||
name: Build Web | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Code Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: 'stable' | ||
|
||
- name: Get Packages | ||
run: flutter pub get | ||
|
||
- name: Build Web | ||
run: flutter build web | ||
|
||
- name: Deploy to Netlify | ||
uses: nwtgck/actions-netlify@v2.0 | ||
with: | ||
publish-dir: build/web | ||
production-branch: ${{ github.ref }} | ||
deploy-message: 'GH-ACTIONS: Deploy of branch ${{ github.ref }}' | ||
enable-commit-status: true | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
production-deploy: false | ||
enable-pull-request-comment: false | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |
317cc29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://6525858779509c0527acbb29--vertretungsapp.netlify.app