-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.24 KB
/
cli-release.yml
File metadata and controls
51 lines (41 loc) · 1.24 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# This workflow will install Deno then run Deno lint and test.
# For more information see: https://github.com/denoland/setup-deno
name: Release CLI
on:
push:
tags:
- "graphgen-cli-v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Get Version
id: vars
run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//')
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: https://registry.npmjs.com
- name: Build
run: deno task build:cli
env:
VERSION: ${{steps.vars.outputs.version}}
- name: Release
uses: softprops/action-gh-release@v1
with:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
token: ${{ secrets.FRONTSIDEJACK_GITHUB_TOKEN }}
files: cli/build/*
fail_on_unmatched_files: true
env:
GITHUB_REPOSITORY: thefrontside/graphgen