-
Notifications
You must be signed in to change notification settings - Fork 24
45 lines (37 loc) · 1.28 KB
/
release.yml
File metadata and controls
45 lines (37 loc) · 1.28 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
45
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get version from tag
id: version
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Build ZIP
run: |
zip -r debug-helper-${{ steps.version.outputs.version }}.zip . \
-x '.git/*' '.github/*' 'images/*.png' 'debug-report-*.json'
cp debug-helper-${{ steps.version.outputs.version }}.zip debug-helper-latest.zip
- name: Create versioned release
uses: softprops/action-gh-release@v2
with:
name: Debug Helper ${{ steps.version.outputs.version }}
generate_release_notes: true
files: debug-helper-${{ steps.version.outputs.version }}.zip
- name: Update latest release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
name: Debug Helper (Latest)
body: |
Always points to the most recent release: **${{ steps.version.outputs.version }}**
Download the ZIP below, unzip, and load as unpacked extension in Chrome.
files: debug-helper-latest.zip
prerelease: true
make_latest: false