-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 947 Bytes
/
release.yml
File metadata and controls
36 lines (32 loc) · 947 Bytes
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
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24.14.0
cache: npm
- run: npm ci
- run: npm run build
- run: cp dist/index.html docker-compose-debugger.html
# Immutable releases require draft-first so assets can be attached
# before the release is locked.
- uses: softprops/action-gh-release@v2
with:
files: docker-compose-debugger.html
generate_release_notes: true
prerelease: ${{ contains(github.ref, '-') }}
draft: true
- name: Publish release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
run: gh release edit "$TAG" --repo "${{ github.repository }}" --draft=false