Skip to content

Commit

Permalink
Bump CI actions (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timi007 authored Sep 14, 2024
1 parent 4309554 commit be055a1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,21 @@ jobs:
run: mv .hemttout/release .hemttout/@${{ env.MOD_NAME }}

- name: Upload Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.MOD_NAME }}
path: .hemttout/@*
retention-days: 1
include-hidden-files: true # Because .hemttout is a hidden directory
if-no-files-found: error

publish-release:
needs: build
if: github.ref == 'refs/heads/release'
runs-on: ubuntu-latest
steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Prepare Archives
run: |
Expand All @@ -83,7 +85,7 @@ jobs:
- name: Prepare GitHub Release
id: release_drafter
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
with:
name: Version ${{ needs.build.outputs.VERSION_SHORT }}
tag: v${{ needs.build.outputs.VERSION }}
Expand All @@ -92,7 +94,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload mod archive to GitHub Release
uses: shogo82148/actions-upload-release-asset@v1.7.2
uses: shogo82148/actions-upload-release-asset@v1.7.7
with:
upload_url: ${{ steps.release_drafter.outputs.upload_url }}
asset_path: ./${{ needs.build.outputs.MOD_NAME }}_${{ needs.build.outputs.VERSION_SHORT }}.zip
Expand Down

0 comments on commit be055a1

Please sign in to comment.