Skip to content

Publishing auto-converted artifacts #8

Publishing auto-converted artifacts

Publishing auto-converted artifacts #8

Workflow file for this run

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 }}