Skip to content

Commit

Permalink
Update depcrecated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rageagainsthepc committed Nov 15, 2023
1 parent 670268e commit f0b9682
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Install dependencies
Expand Down
24 changes: 7 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ jobs:
dotnet-platform: [linux-x64, win-x64, osx-x64, osx-arm64]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Build self-contained binary
run: dotnet publish -r ${{ matrix.dotnet-platform }} -p:PublishSingleFile=true --self-contained true
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: artifact_${{ matrix.dotnet-platform }}
path: |
Expand All @@ -38,26 +38,16 @@ jobs:

steps:
- name: Download Artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: artifact_${{ matrix.dotnet-platform }}
path: artifact
- name: Get release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Find artifact
id: find_artifact
run: echo "::set-output name=artifact_path::$(find artifact -type f)"
run: echo "artifact_path=$(find artifact -type f)" >> $GITHUB_OUTPUT
- name: Create zip archive
run: zip -j guitarprotomidi_${{ matrix.dotnet-platform }}.zip ${{ steps.find_artifact.outputs.artifact_path }}
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: guitarprotomidi_${{ matrix.dotnet-platform }}.zip
asset_name: guitarprotomidi_${{ matrix.dotnet-platform }}.zip
asset_content_type: application/zip
files: guitarprotomidi_${{ matrix.dotnet-platform }}.zip

0 comments on commit f0b9682

Please sign in to comment.