-
Notifications
You must be signed in to change notification settings - Fork 73
65 lines (62 loc) · 1.83 KB
/
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
62
63
64
65
# name of your github action
name: Release CI
# this will help you specify when & which branch to run deployment
on:
push:
tags:
- v*
jobs:
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: Exit if tag not is not pointing to a commit in master branch
# if: endsWith(github.ref, 'master') == false
# run: exit -1
- name: Get release tag
id: tag
uses: dawidd6/action-get-tag@v1
with:
strip_v: false
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{steps.tag.outputs.tag}}
name: ${{steps.tag.outputs.tag}}
body_path: ./Release.md
draft: false
prerelease: false
generate_release_notes: false
build:
needs: create_release
name: Build Release archives
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.12.0
- uses: actions/setup-node@master
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Create release assets directory
run: mkdir -p dist
- name: Build Workbench & create release archive for ${{ matrix.os }}
run: npm run publish
- name: Create source code archive (including node_modules)
run: npm run srcarchive
- name: Verify Generated archives in dist/
run: ls ./dist
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
files: dist/*