Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CatmanFan committed Dec 28, 2024
1 parent 0376571 commit 93a201d
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,24 @@ jobs:
$DATE=& Get-Date -format yyyy-MM-dd
echo "DATE=$DATE" >> $env:GITHUB_ENV
- name: Get commit hash
id: commit
uses: prompt/actions-commit-hash@v3
- name: Get commit SHA
run: echo "SHORT_SHA=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV

- name: Compress archive
run: Compress-Archive -Path FriishProduce\bin\Release\* -DestinationPath FriishProduce_latest.zip

- name: Update release
id: update_release
uses: tubone24/update_release@v1.3.1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
TAG_NAME: latest
with:
release_name: "Latest build (${{ steps.commit.outputs.short }})"
body: "This is the latest build as of ${{ env.DATE }}, autogenerated from the most recent commit.\n\n**How to update manually:**\nreplace the files in your FriishProduce directory with the newer ones, and delete any leftover files or folders that are no longer needed."
is_append_body: false

- name: Upload to release
- name: Upload release
uses: softprops/action-gh-release@v2
with:
tag_name: latest
files: FriishProduce_latest.zip
append_body: false
draft: false
prerelease: true
name: "Latest build ${{ env.SHORT_SHA }}"
body: "This is the latest build as of ${{ env.DATE }}, autogenerated from the most recent commit ${{ env.SHORT_SHA }}.\n\n
**How to update manually:**
\n * Extract the files to your FriishProduce directory, overwriting the older versions, and delete any leftover files or folders that are no longer needed.
\n * It is recommended to also clear your previous settings by deleting the FriishProduce folder in your user's local app data directory.\n\n
Be sure to read [the wiki](https://catmanfan.github.io/friishproduce-wiki/about) for instructions and further details."
token: ${{ secrets.github_token }} # Required

0 comments on commit 93a201d

Please sign in to comment.