generated from LiteLoaderQQNT/Plugin-Template
-
Notifications
You must be signed in to change notification settings - Fork 16
42 lines (34 loc) · 1.02 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
name: "tagged-release"
on:
push:
tags:
- "v*"
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout Repository"
uses: "actions/checkout@v4"
with:
fetch-depth: 16 # Ensure we can generate changelogs
- name: "Setup Node.js"
uses: "actions/setup-node@v2"
with:
node-version: "20"
- name: "Install Dependencies"
run: npm i
- name: "Test"
run: npm test
- name: "Zip release files" # Only if the version has been updated
run: |
echo "Creating a release zip file..."
zip -r transitio-release.zip icons/ node_modules/ modules/ main.js manifest.json preload.js renderer.js settings.html
echo "Done!"
- name: "Create Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
transitio-release.zip