Skip to content

Commit 5611121

Browse files
chore: update GitHub Actions workflows for release process
- Remove tag filtering from the release trigger in artifacts.yml to allow releases on all events. - Change the runner for the create-release job from self-hosted to arc-runners for better compatibility. - Refactor the release creation step to use softprops/action-gh-release for streamlined release management.
1 parent 75d7962 commit 5611121

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

.github/workflows/artifacts.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010

1111
release:
1212
types: [created, edited]
13-
tags:
14-
- 'v*'
1513

1614
permissions:
1715
contents: write

.github/workflows/create-release.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010

1111
jobs:
1212
create-release:
13-
runs-on: self-hosted
13+
runs-on: arc-runners
1414
permissions:
1515
contents: write
1616
packages: write
@@ -79,15 +79,12 @@ jobs:
7979
echo "Generating release notes..."
8080
python3 scripts/generate-release-notes.py ${{ env.OPENAI_MODEL }}
8181
echo "Release notes generated"
82-
- name: Create Release
82+
- name: Create a Release
83+
uses: softprops/action-gh-release@v2
8384
env:
84-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
NEW_VERSION: ${{ env.NEW_VERSION }}
86-
DOCKERLIKE_RELEASE_NAME: ${{ env.DOCKERLIKE_RELEASE_NAME }}
87-
BRANCH: ${{ github.ref }}
88-
run: |
89-
cat release_notes.md
90-
gh release create ${NEW_VERSION} \
91-
--title "${DOCKERLIKE_RELEASE_NAME}" \
92-
--notes-file release_notes.md \
93-
--target ${BRANCH}
85+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
86+
with:
87+
name: ${{ env.DOCKERLIKE_RELEASE_NAME }}
88+
notes: ${{ env.COMMITS }}
89+
tag_name: ${{ env.NEW_VERSION }}
90+
body_path: release_notes.md

0 commit comments

Comments
 (0)