forked from GSA/fedramp-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (28 loc) · 938 Bytes
/
create-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 }}