-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (56 loc) · 1.56 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
66
67
68
69
# SPDX-FileCopyrightText: Copyright 2023 Roland Csaszar
# SPDX-License-Identifier: MIT
#
# Project: vscode-scheme-repl
# File: release.yml
# Date: 14.May.2023
#
# ==============================================================================
name: Release
on:
release:
types: [created]
push:
tags:
- "v*.*.*"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
package:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get Tag
uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "v(.*)"
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Generate Changelog
run: |
npm install --save-dev
npm exec ts-node generate_changelog.ts ${{ env.GIT_TAG_NAME }}
- name: Build VSIX
run: npm run package
- name: Release to GitHub
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: Version ${{ env.GIT_TAG_NAME }}
body_path: latest_changelog.md
files: ./vscode-scheme-repl*.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: Chez Scheme REPL
path: ./vscode-scheme-repl*.vsix