Skip to content

Commit f9099ec

Browse files
authored
GitHub actions update (#50)
* Update main_build.yml * Update release_build.yml
1 parent 936a2b0 commit f9099ec

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.github/workflows/main_build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
pull_request:
99
branches: [ main ]
1010

11-
env:
12-
DOTNET_VERSION: '9.0.x'
13-
1411
jobs:
1512
build:
1613

@@ -21,11 +18,10 @@ jobs:
2118

2219
steps:
2320
- uses: actions/checkout@v4
24-
21+
22+
# This uses the latest version of dotnet cli since we don't specify a specific version number here
2523
- name: Setup .NET
2624
uses: actions/setup-dotnet@v4
27-
with:
28-
dotnet-version: ${{ env.DOTNET_VERSION }}
2925

3026
# Restore nuget packages
3127
- name: Restore dependencies
@@ -47,4 +43,4 @@ jobs:
4743
env:
4844
GOOGLE_SERVICE_ACCOUNT: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }}
4945
GOOGLE_SPREADSHEET_ID: ${{ secrets.GOOGLE_SPREADSHEET_ID }}
50-
GOOGLE_JSON_CREDS: ${{ secrets.GOOGLE_JSON_CREDS }}
46+
GOOGLE_JSON_CREDS: ${{ secrets.GOOGLE_JSON_CREDS }}

.github/workflows/release_build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ on:
77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
99

10-
env:
11-
DOTNET_VERSION: '9.0.x'
12-
1310
jobs:
1411
build:
1512

@@ -20,11 +17,10 @@ jobs:
2017

2118
steps:
2219
- uses: actions/checkout@v4
23-
20+
21+
# Uses the latest version of dotnet since we don't specific a version here
2422
- name: Setup .NET
2523
uses: actions/setup-dotnet@v4
26-
with:
27-
dotnet-version: ${{ env.DOTNET_VERSION }}
2824

2925
# Restore nuget packages
3026
- name: Restore dependencies
@@ -50,4 +46,4 @@ jobs:
5046

5147
# Publish the Nuget file to Nuget.org
5248
- name: PushNuget
53-
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
49+
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate

0 commit comments

Comments
 (0)