Skip to content

Commit b68ab12

Browse files
committed
Add a GitHub Action to release there
This already works, creates a draft release for this vTEST tag I'm using to test this. Furthermore, it generates & includes the JSON theme file to the release. I'm testing with act: https://github.com/nektos/act
1 parent 74920ab commit b68ab12

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/release.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
env:
12+
VERSION: vTEST #todo: ${{ github.ref }}
13+
14+
steps:
15+
- name: Git checkout️
16+
uses: actions/checkout@v4
17+
with:
18+
ref: ${{ env.VERSION }}
19+
20+
- name: Set up Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: lts/*
24+
25+
- name: Build the theme
26+
run: |
27+
npm ci
28+
npm run build
29+
30+
- name: Release on GitHub
31+
uses: softprops/action-gh-release@v1
32+
with:
33+
draft: true
34+
name: ${{ env.VERSION }}
35+
#nice: add the version number to the file
36+
files: themes/Lucario-color-theme.json
37+
# body: #todo
38+
generate_release_notes: true
39+
make_latest: false # problematic if we release a v1 minor version

0 commit comments

Comments
 (0)