Skip to content

Commit a4338c8

Browse files
Merge pull request #290 from AikidoSec/fix-release-workflow
Update workflow to allow immutable releases, work with new IP restrictions & create RELEASE.md
2 parents de88b89 + 9b557fc commit a4338c8

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: 📦 Publish new Release
22

33
on:
44
release:
5-
types: [published]
5+
types: [created]
66

77
permissions:
88
contents: write
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
create-release-asset:
14-
runs-on: ubuntu-latest
14+
runs-on: open-source-releaser
1515

1616
steps:
1717
- name: Check out code
@@ -73,3 +73,7 @@ jobs:
7373
asset_path: ./zen.tar.gz.sha256sum
7474
asset_name: zen.tar.gz.sha256sum
7575
asset_content_type: text/plain
76+
- name: Publish release
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
run: gh release edit ${{ github.event.release.tag_name }} --draft=false --repo ${{ github.repository }}

RELEASE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Releasing
2+
3+
1. Go to **GitHub → Releases → Draft a new release**
4+
2. Choose a tag (e.g. `v1.2.3`) and set it as a **draft**
5+
3. Click **Save draft** — this triggers the release workflow
6+
4. The workflow builds the artifacts, uploads them to the draft, then publishes the release automatically

0 commit comments

Comments
 (0)