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 fd2fa13 commit e94061e
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,17 @@ on:

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Setup .NET
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 @@ -35,27 +30,27 @@ 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 %tt')"

run: echo "::set-output name=date::$(date +'%d/%m/%Y %H:%M %t')"
- name: Create download directory
run: mkdir -p "./download"

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

- name: Find first zip file
id: find_zip
run: |
zip_file=$(find ./download -name "*.zip" | head -n 1)
echo "::set-output name=zip_file::$zip_file"
- name: Create A Release
uses: actions/create-release@v1
id: create_release
Expand All @@ -66,13 +61,12 @@ 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: ${{ steps.find_zip.outputs.zip_file }}
asset_name: Automatic OSC Router.zip
asset_content_type: application/x-msdownload

0 comments on commit e94061e

Please sign in to comment.