Skip to content

Commit 5e1ec30

Browse files
committed
CI release: use gh release instead of actions
1 parent c109133 commit 5e1ec30

File tree

4 files changed

+9
-29
lines changed

4 files changed

+9
-29
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
1-
# modified from https://github.com/simonmichael/hledger/blob/master/.github/workflows/release.yml
2-
3-
# Creates a draft github release.
4-
# See https://github.com/actions/create-release, still pretty rough as of 20200609.
5-
# see also: https://github.com/marketplace/actions/tag-release-on-push-action
6-
71
name: Release
82

9-
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
103
on:
114
push:
125
tags:
@@ -23,15 +16,11 @@ jobs:
2316
uses: actions/checkout@v4
2417

2518
- name: 🏭 Create Release
26-
id: create_release
27-
uses: actions/create-release@v1.0.0
19+
run: |
20+
gh release create ${{ github.ref }} --generate-notes
2821
env:
2922
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30-
with:
31-
tag_name: ${{ github.ref }}
32-
release_name: ${{ github.ref }}
33-
draft: false
34-
prerelease: false
23+
3524
# - name: ⏫ Upload to Hackage
3625
# id: upload_hackage
3726
# env:

.github/workflows/test-linux.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,8 @@ jobs:
115115
mv zip/als-ubuntu.zip .
116116
117117
- name: 🚢 Release Artifacts
118-
uses: softprops/action-gh-release@v1
119118
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
120-
with:
121-
files: als-ubuntu.zip
122-
draft: true
123-
prerelease: true
124119
env:
125120
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121+
run: |
122+
gh release upload ${{ github.ref }} als-ubuntu.zip --clobber

.github/workflows/test-mac.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,8 @@ jobs:
206206
mv zip/als-macos.zip .
207207
208208
- name: 🚢 Release Artifacts
209-
uses: softprops/action-gh-release@v1
210209
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
211-
with:
212-
files: als-macos.zip
213-
draft: true
214-
prerelease: true
215210
env:
216211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212+
run: |
213+
gh release upload ${{ github.ref }} als-macos.zip --clobber

.github/workflows/test-windows.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,8 @@ jobs:
140140
mv zip/als-windows.zip .
141141
142142
- name: 🚢 Release Artifacts
143-
uses: softprops/action-gh-release@v1
144143
if: startsWith(github.ref, 'refs/tags/') # so that only commits with a git tag would upload artifacts
145-
with:
146-
files: als-windows.zip
147-
draft: true
148-
prerelease: true
149144
env:
150145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146+
run: |
147+
gh release upload ${{ github.ref }} als-windows.zip --clobber

0 commit comments

Comments
 (0)