Skip to content

Commit

Permalink
Merge pull request #3 from thecodepapaya/deployment-automation
Browse files Browse the repository at this point in the history
Update build.yml
  • Loading branch information
thecodepapaya committed Sep 10, 2021
2 parents 89a1dbf + 732ccbf commit 4d9f4b5
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Export Release Timestamp
run: echo "APP_VERSION=v$(date +'%Y.%m.%d.%H.%m.%S')" >> $GITHUB_ENV

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

Expand All @@ -37,4 +40,14 @@ jobs:
# - name: Run Tests
# run: flutter test
- name: Build Web
run: flutter build web
run: |
flutter build web
cd build/web
zip -r web-app.zip .
- name: Release Web App
uses: ncipollo/release-action@v1
with:
tag: ${{ env.APP_VERSION }}
name: ${{ env.APP_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: 'build/web/web-app.zip'

0 comments on commit 4d9f4b5

Please sign in to comment.