|
18 | 18 | changelog: CHANGELOG.md |
19 | 19 | source-dir: src/ |
20 | 20 | artifact-name: hades2-mod-template.zip |
21 | | - artifact-content-type: application/zip |
22 | 21 | FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" |
23 | 22 |
|
24 | 23 | jobs: |
@@ -66,24 +65,15 @@ jobs: |
66 | 65 | git tag ${{ inputs.tag }} --annotate --message "Release ${{ inputs.tag }}" |
67 | 66 | git push origin HEAD:${{ github.ref_name }} --tags |
68 | 67 |
|
69 | | - - name: Create release |
| 68 | + - name: Create release and upload artifact |
70 | 69 | 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 |
88 | 78 | env: |
89 | 79 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments