Skip to content

Commit 20b73b1

Browse files
committed
try fixing immutable releases
1 parent 006afae commit 20b73b1

1 file changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,21 @@ jobs:
7070
sha256sum * > checksums.txt
7171
7272
- name: Create Release
73-
uses: softprops/action-gh-release@v1
74-
with:
75-
files: |
76-
dist/rememory-linux-amd64
77-
dist/rememory-linux-arm64
78-
dist/rememory-darwin-amd64
79-
dist/rememory-darwin-arm64
80-
dist/rememory-windows-amd64.exe
81-
dist/demo-bundles.zip
82-
dist/checksums.txt
83-
dist/maker.html
84-
dist/recover.html
85-
generate_release_notes: true
73+
env:
74+
GH_TOKEN: ${{ github.token }}
75+
run: |
76+
# Create draft release with assets (drafts can be modified)
77+
gh release create ${{ github.ref_name }} \
78+
dist/rememory-linux-amd64 \
79+
dist/rememory-linux-arm64 \
80+
dist/rememory-darwin-amd64 \
81+
dist/rememory-darwin-arm64 \
82+
dist/rememory-windows-amd64.exe \
83+
dist/demo-bundles.zip \
84+
dist/checksums.txt \
85+
dist/maker.html \
86+
dist/recover.html \
87+
--generate-notes \
88+
--draft
89+
# Publish the release (now it becomes immutable)
90+
gh release edit ${{ github.ref_name }} --draft=false

0 commit comments

Comments
 (0)