Skip to content

Merge pull request #222 from kaleido-io/tokens-active #66

Merge pull request #222 from kaleido-io/tokens-active

Merge pull request #222 from kaleido-io/tokens-active #66

Workflow file for this run

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