Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MistressPlague authored Jan 12, 2025
1 parent 806aa3d commit bf11c14
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore --configuration Release --output ./output

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -32,11 +35,25 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Delete Old Releases
uses: dev-drprasad/[email protected]
with:
keep_latest: 0
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: "Automatic OSC Router"
path: "./download"

- name: Create A Release
uses: actions/create-release@v1
id: create_release
Expand All @@ -47,12 +64,13 @@ jobs:
tag_name: ${{ github.run_id }}
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Add zip To Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./download/Automatic OSC Router.zip
asset_path: ./download/Automatic\ OSC\ Router.zip
asset_name: Automatic OSC Router.zip
asset_content_type: application/x-msdownload

0 comments on commit bf11c14

Please sign in to comment.