forked from rajkrishnamurthy/fedramp-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 810 Bytes
/
Copy pathcreate-release.yml
File metadata and controls
31 lines (26 loc) · 810 Bytes
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
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/setup-node@v2.3.0
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
# Initialize workspace with git submodules and build a release
- name: Build release
run: make init build
# Create a release corresponding to the triggered tag
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: dist/validations/ssp.xsl
token: ${{ secrets.GITHUB_TOKEN }}