-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd2fa13
commit e94061e
Showing
1 changed file
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 |