Skip to content

Commit

Permalink
Use release instead of artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
okpedersen committed Jun 23, 2021
1 parent 9969293 commit 5acfbc7
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,27 @@ jobs:
run: |
npm ci
REACT_APP_BACKEND_URL=will-be-replaced-by-terraform npm run build --if-present
zip -r release.zip build
working-directory: frontend
- name: Archive production artifacts
uses: actions/upload-artifact@v2

- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
body: A new release
env:
GITHUB_TOKEN: ${{ github.token }}

- name: upload linux artifact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
name: iac-workshop-frontend
path: frontend/build
if-no-files-found: error
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: frontend/release.zip
asset_name: release.zip
asset_content_type: application/zip

0 comments on commit 5acfbc7

Please sign in to comment.