forked from hyperledger/firefly-ui
-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (33 loc) · 928 Bytes
/
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
35
name: Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: npm i
- run: PUBLIC_URL="/ui" npm run build
- name: Set outputs
id: vars
run: |
echo "::set-output name=ref_name::$(echo ${{ github.ref }} | sed 's/.*\///')"
- name: package
run: tar -C build -zcvf "${{ steps.vars.outputs.ref_name }}.tgz" .
- name: release
uses: softprops/action-gh-release@v1
id: create_release
with:
draft: false
prerelease: false
name: ${{ steps.vars.outputs.ref_name }}
tag_name: ${{ steps.vars.outputs.ref_name }}
files: ${{ steps.vars.outputs.ref_name }}.tgz
env:
GITHUB_TOKEN: ${{ github.token }}