This repository was archived by the owner on Feb 24, 2024. It is now read-only.
forked from aj-swartz/SaladBind
-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.16 KB
/
release.yml
File metadata and controls
44 lines (42 loc) · 1.16 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
name: Compile Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate changelog
run: |
gh api repos/validcube/UnstableBind/releases/generate-notes -f tag_name="${GITHUB_REF#refs/tags/}" -f target_commitish=main -q .body >> CHANGELOG.md
env:
GITHUB_TOKEN: ${{secrets.DAG_UPDATER}}
- name: Read changelog
id: changelog
uses: juliangruber/read-file-action@v1
with:
path: ./CHANGELOG.md
- name: Install node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Compile
run: |
npm install
npm run compile
- name: Release
uses: softprops/action-gh-release@v0.1.15
with:
body: ${{ steps.changelog.outputs.content }}
token: ${{ secrets.DAG_UPDATER}}
files: |
bin/saladbind-win.exe
bin/saladbind-macos
bin/saladbind-linux