Skip to content

Commit

Permalink
Github Actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
hwndmaster committed Sep 16, 2024
1 parent ae63e27 commit bba6a83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
DOTNET_CLI_TELEMETRY_OPTOUT: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore --runtime "win-x64"
- name: Build
Expand All @@ -39,7 +39,7 @@ jobs:
7z a -tzip "${release_name_sc}.zip" "./${release_name_sc}/*"
rm -r "$release_name_sc"
- name: Publish
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
${release_name}.zip
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,16 @@ jobs:
DOTNET_CLI_TELEMETRY_OPTOUT: true

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x
- name: Restore dependencies
run: |
dotnet nuget add source https://nuget.pkg.github.com/hwndmaster/index.json -n github -u hwndmaster -p ${{ secrets.PRIVATE_PKG_TOKEN }} --store-password-in-clear-text
dotnet nuget add source https://nuget.pkg.github.com/hwndmaster/index.json -n github -u hwndmaster -p ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Cleanup
if: always()
continue-on-error: true
run: |
dotnet nuget remove source github

0 comments on commit bba6a83

Please sign in to comment.