v1.1.1 #3
Workflow file for this run
This file contains hidden or 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
| # compiles angular frontend and attaches it to the latest release. | |
| name: Release Frontend | |
| on: | |
| release: | |
| # Only use the types keyword to narrow down the activity types that will trigger your workflow. | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release-frontend: | |
| name: Release Frontend | |
| runs-on: ubuntu-latest | |
| container: node:lts-slim | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.release.tag_name }} | |
| - name: Generate frontend version information | |
| run: cd webapp/frontend && ./git.version.sh | |
| - name: Build Frontend | |
| run: | | |
| apt-get update && apt-get install -y make | |
| make binary-frontend | |
| tar -czf scrutiny-web-frontend.tar.gz dist | |
| - name: Upload Frontend Asset | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: scrutiny-web-frontend.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.SCRUTINY_GITHUB_TOKEN }} |