Skip to content

Commit 93ea0f5

Browse files
committed
feat: update GitHub workflows to use new release action
- Updated the workflow to use the new release action instead of the upload action. - Changed the name of the "upload" job to "release" for clarity. - Modified the "Create GitHub Release" step to use the specified tag, files, and set the release as a prerelease. These changes were made to improve the release process and ensure that the correct assets are uploaded for the GitHub release.
1 parent 6e1e845 commit 93ea0f5

File tree

2 files changed

+10
-28
lines changed

2 files changed

+10
-28
lines changed

.github/workflows/ci.yaml

+8-26
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
- "3.11"
7777
- "3.12"
7878

79-
upload:
80-
name: Upload Release Assets
79+
release:
80+
name: Release
8181
permissions:
8282
contents: write
8383
needs:
@@ -89,28 +89,10 @@ jobs:
8989
- name: Download Artifacts
9090
uses: actions/download-artifact@v4
9191
with:
92-
path: artifacts
93-
- name: Delete Existing Release
94-
run: gh release --repo="${{ github.repository }}" delete dev --cleanup-tag
95-
env:
96-
GH_TOKEN: ${{ github.token }}
97-
continue-on-error: true
98-
- name: Upload Release Assets
99-
run: gh release --repo="${{ github.repository }}" create dev artifacts/**/* --generate-notes --prerelease
100-
env:
101-
GH_TOKEN: ${{ github.token }}
102-
103-
check:
104-
name: Check
105-
needs:
106-
- build-pkg
107-
- build-exe
108-
- upload
109-
if: always()
110-
runs-on: ubuntu-latest
111-
steps:
112-
- name: Check
113-
uses: re-actors/alls-green@release/v1
92+
merge-multiple: true
93+
- name: Create GitHub Release
94+
uses: liblaf/template/.github/actions/release@main
11495
with:
115-
jobs: ${{ toJSON(needs) }}
116-
allowed-skips: upload
96+
tag: dev
97+
files: "*"
98+
prerelease: true

.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ jobs:
141141
- name: Download Artifacts
142142
uses: actions/download-artifact@v4
143143
with:
144-
path: artifacts
144+
merge-multiple: true
145145
- name: Upload Release Assets
146-
run: gh release --repo="${{ github.repository }}" upload "${{ needs.release.outputs.tag }}" artifacts/**/* --clobber
146+
run: gh release --repo="${{ github.repository }}" upload "${{ needs.release.outputs.tag }}" * --clobber
147147
env:
148148
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)