Skip to content

Commit d0e7f73

Browse files
committed
replace action-gh-release with gh release in ci
1 parent 6880898 commit d0e7f73

3 files changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/engine-build.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ jobs:
6868
uses: "WyriHaximus/github-action-get-previous-tag@v2"
6969

7070
- name: Upload binaries to latest release
71-
uses: softprops/action-gh-release@v2
72-
with:
73-
tag_name: ${{ steps.previous_tag.outputs.tag }}
74-
files: build/${{ env.PACKAGE_NAME }}.zip
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
TAG: ${{ steps.previous_tag.outputs.tag }}
74+
shell: bash
75+
run: gh release upload "$TAG" "build/${PACKAGE_NAME}.zip" --clobber
7576

7677
- name: Upload engine artifact
7778
uses: actions/upload-artifact@v4
@@ -113,7 +114,7 @@ jobs:
113114
114115
# remove old bundled zip and upload new one
115116
- name: Upload bundled addon
116-
uses: softprops/action-gh-release@v2
117-
with:
118-
tag_name: ${{ steps.previous_tag.outputs.tag }}
119-
files: ${{ env.BUNDLED_NAME }}.zip
117+
env:
118+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
119+
TAG: ${{ steps.previous_tag.outputs.tag }}
120+
run: gh release upload "$TAG" "${BUNDLED_NAME}.zip" --clobber

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,23 +82,23 @@ jobs:
8282
8383
# 4. create new release
8484
- name: Create release
85-
uses: softprops/action-gh-release@v2
86-
with:
87-
tag_name: ${{ steps.get_version.outputs.new_version }}
88-
files: ${{ env.ADDON_NAME }}.zip
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
TAG: ${{ steps.get_version.outputs.new_version }}
88+
run: gh release create "$TAG" "${ADDON_NAME}.zip" --title "$TAG"
8989

9090
# 5. upload bundled addon
9191
- name: Upload bundled addon
9292
if: ${{ steps.bundled.outputs.has_engines == 'true' }}
93-
uses: softprops/action-gh-release@v2
94-
with:
95-
tag_name: ${{ steps.get_version.outputs.new_version }}
96-
files: ${{ env.BUNDLED_NAME }}.zip
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
TAG: ${{ steps.get_version.outputs.new_version }}
96+
run: gh release upload "$TAG" "${BUNDLED_NAME}.zip"
9797

9898
# 6. upload engine if not new
9999
- name: Upload engine
100100
if: ${{ inputs.use_old_engine && fromJSON(steps.download_engines.outputs.downloaded_files || '[]')[0] != null }}
101-
uses: softprops/action-gh-release@v2
102-
with:
103-
tag_name: ${{ steps.get_version.outputs.new_version }}
104-
files: "${{ env.ENGINE_PREFIX }}-*.zip"
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
TAG: ${{ steps.get_version.outputs.new_version }}
104+
run: gh release upload "$TAG" ${ENGINE_PREFIX}-*.zip

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
__pycache__/
22
.venv/
3+
.ruff_cache/
34

45
.vscode/
56

0 commit comments

Comments
 (0)