-
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 862 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
name: Create a GitHub Release
on:
workflow_dispatch:
push:
tags: 'v*.*.*'
jobs:
release:
strategy:
matrix:
os: [ubuntu-latest]
node: [14]
runs-on: ${{ matrix.os }}
steps:
- name: Wait for the CI workflow to complete
id: wait-for-ci
uses: fountainhead/action-wait-for-check@v1.0.0
with:
checkName: ci (${{ matrix.os }}, ${{ matrix.node }})
token: ${{ secrets.GITHUB_TOKEN }}
- if: steps.wait-for-ci.outputs.conclusion == 'failure'
run: exit 1
- name: Check out the repository
uses: actions/checkout@v2
- name: Create a GitHub release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}