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 55a32c2 commit 2efb9c4
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,26 @@ jobs:

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')"
run: echo "date=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT

- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: latest
release_name: Latest Build (${{ steps.date.outputs.date }})
draft: true
prerelease: true

- name: Upload release
id: upload_release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: out.zip
asset_name: FriishProduce_latest.zip
asset_content_type: application/zip

0 comments on commit 2efb9c4

Please sign in to comment.