Skip to content

Commit

Permalink
Update workflows to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ authored Sep 19, 2024
1 parent 3afa8c4 commit d4970e3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/develop-buildandtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.x
6.x
7.x
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Test with dotnet
run: dotnet test --logger trx --results-directory "TestResults-dotnet-6"
- name: Upload dotnet test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dotnet-results-dotnet-6
path: TestResults-dotnet-6
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/main-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
5.x
6.x
7.x
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
Expand All @@ -34,9 +34,9 @@ jobs:
run: |
git config user.email "github-action@users.noreply.github.com"
git config user.name "GitHub Action"
git tag v1.0.0
git tag v1.0.1
git add .
git push origin v1.0.0
git push origin v1.0.1
- name: Create Release
id: create_release
uses: marvinpinto/action-automatic-releases@latest
Expand All @@ -49,10 +49,10 @@ jobs:
files: |
./Ethar.GeoPose.zip
./Ethar.GeoPose.Authority.zip
Ethar.GeoPose/bin/Release/Ethar.GeoPose.1.0.0.nupkg
Ethar.GeoPose.Authority/bin/Release/Ethar.GeoPose.Authority.1.0.0.nupkg
Ethar.GeoPose/bin/Release/Ethar.GeoPose.1.0.1.nupkg
Ethar.GeoPose.Authority/bin/Release/Ethar.GeoPose.Authority.1.0.1.nupkg
- name: Clone UPM branch
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: upm
path: upm
Expand All @@ -74,9 +74,9 @@ jobs:
git add .
git commit -m "upm package updated to ${{ steps.create_release.outputs.automatic_releases_tag }} [skip ci]"
git push origin upm
git tag upm-v1.0.0
git tag upm-v1.0.1
git add .
git push origin upm-v1.0.0
git push origin upm-v1.0.1
shell: pwsh
- name: Push GeoPose generated package to GitHub registry
run: dotnet nuget push Ethar.GeoPose/bin/Release/Ethar.GeoPose.1.0.0.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org/v3/index.json --skip-duplicate
Expand Down

0 comments on commit d4970e3

Please sign in to comment.