From 2efb9c4fdbb29f004523afdf8fdd70dfda096c02 Mon Sep 17 00:00:00 2001 From: CatmanFan Date: Sat, 28 Dec 2024 16:37:04 +0100 Subject: [PATCH] Update dotnet.yml --- .github/workflows/dotnet.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7eb393f9..5eb3a004 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -36,4 +36,26 @@ jobs: - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y%m%d%H%M%S')" \ No newline at end of file + 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 \ No newline at end of file