-
Notifications
You must be signed in to change notification settings - Fork 811
62 lines (53 loc) · 1.64 KB
/
tagged-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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
npm run build
- name: Zip Build
uses: montudor/action-zip@v1
with:
args: zip -qq -r build.zip build
- name: Create Release
uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE.txt
*.jar
# - name: Create Release
# uses: taiki-e/create-gh-release-action@v1
# with:
# # (Optional)
# # changelog: CHANGELOG.md
# # (Optional) Format of title.
# # [default value: $tag]
# # [possible values: variables $tag, $version, and any string]
# title: $version
# # (Required) GitHub token for creating GitHub Releases.
# token: ${{ secrets.GITHUB_TOKEN }}
- name: Add Zip Build Artifact
uses: AButler/[email protected]
with:
files: 'build.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}