Skip to content

Commit 3b6008f

Browse files
authored
Merge pull request #12 from SGG-Modding/node20-deprecation
remove create-release/upload-release-asset
2 parents ceadd7f + 19f0710 commit 3b6008f

2 files changed

Lines changed: 18 additions & 38 deletions

File tree

.github/workflows/release.yaml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ env:
1818
changelog: CHANGELOG.md
1919
source-dir: src/
2020
artifact-name: hades2-mod-template.zip
21-
artifact-content-type: application/zip
2221
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
2322

2423
jobs:
@@ -66,24 +65,15 @@ jobs:
6665
git tag ${{ inputs.tag }} --annotate --message "Release ${{ inputs.tag }}"
6766
git push origin HEAD:${{ github.ref_name }} --tags
6867
69-
- name: Create release
68+
- name: Create release and upload artifact
7069
if: ${{ !inputs.is-dry-run }}
71-
id: release
72-
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
73-
with:
74-
release_name: ${{ inputs.tag }}
75-
tag_name: ${{ inputs.tag }}
76-
commitish: ${{ github.ref_name }}
77-
env:
78-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79-
80-
- name: Upload artifact to release
81-
if: ${{ !inputs.is-dry-run }}
82-
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5
83-
with:
84-
upload_url: ${{ steps.release.outputs.upload_url }}
85-
asset_name: ${{ env.artifact-name }}
86-
asset_path: ${{ env.artifact-name }}
87-
asset_content_type: ${{ env.artifact-content-type }}
70+
run: |
71+
gh release create \
72+
'${{ inputs.tag }}' \
73+
'${{ env.artifact-name }}' \
74+
--title '${{ inputs.tag }}' \
75+
--repo '${{ github.repository }}' \
76+
--target '${{ github.ref_name }}' \
77+
--verify-tag
8878
env:
8979
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/.github/workflows/release.yaml

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ env:
2222
changelog: CHANGELOG.md
2323
thunderstore-config: thunderstore.toml
2424
build-dir: build
25-
artifact-content-type: application/zip
2625
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
2726

2827
jobs:
@@ -89,24 +88,15 @@ jobs:
8988
git tag ${{ inputs.tag }} --annotate --message "Release ${{ inputs.tag }}"
9089
git push origin HEAD:${{ github.ref_name }} --tags
9190
92-
- name: Create release
93-
id: release
91+
- name: Create release and upload artifact
9492
if: ${{ !inputs.is-dry-run }}
95-
uses: actions/create-release@0cb9c9b65d5d1901c1f53e5e66eaf4afd303e70e
96-
with:
97-
release_name: ${{ inputs.tag }}
98-
tag_name: ${{ inputs.tag }}
99-
commitish: ${{ github.ref_name }}
100-
env:
101-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
102-
103-
- name: Upload artifact to release
104-
if: ${{ !inputs.is-dry-run }}
105-
uses: actions/upload-release-asset@e8f9f06c4b078e705bd2ea027f0926603fc9b4d5
106-
with:
107-
upload_url: ${{ steps.release.outputs.upload_url }}
108-
asset_name: ${{ env.artifact-name }}
109-
asset_path: ${{ env.artifact-path }}
110-
asset_content_type: ${{ env.artifact-content-type }}
93+
run: |
94+
gh release create \
95+
'${{ inputs.tag }}' \
96+
'${{ env.artifact-path }}' \
97+
--title '${{ inputs.tag }}' \
98+
--repo '${{ github.repository }}' \
99+
--target '${{ github.ref_name }}' \
100+
--verify-tag
111101
env:
112102
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)