Publishing auto-converted artifacts #8
Workflow file for this run
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
name: Build release artifact | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-release: | |
runs-on: ubuntu-latest | |
steps: | |
# Check-out the repository under $GITHUB_WORKSPACE | |
- uses: actions/checkout@v2 | |
- name: Read Node version from .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- uses: actions/[email protected] | |
with: | |
node-version: ${{ steps.nvm.outputs.NVMRC }} | |
# Initialize workspace with git submodules and build a release | |
- name: Build release | |
run: make init build | |
- name: Create release archive | |
run: mv dist fedramp-automation && zip -r fedramp-automation.zip fedramp-automation | |
# Create a release corresponding to the triggered tag | |
- uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: fedramp-automation.zip | |
token: ${{ secrets.GITHUB_TOKEN }} |