Skip to content

Commit 193d912

Browse files
authored
Test release permissions (#2)
2 parents 32c4832 + 03329a8 commit 193d912

File tree

1 file changed

+1
-31
lines changed

1 file changed

+1
-31
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,8 @@ on:
3131
types: [published]
3232

3333
jobs:
34-
build-all-configs:
35-
strategy:
36-
matrix:
37-
os: [ubuntu-latest, windows-latest, macos-latest]
38-
configuration: [Debug, Release]
39-
fail-fast: false
40-
41-
runs-on: ${{ matrix.os }}
42-
43-
permissions:
44-
contents: read
45-
46-
steps:
47-
- name: Clone the repo
48-
uses: actions/checkout@v4
49-
with:
50-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
51-
52-
- name: Set up .NET
53-
uses: actions/setup-dotnet@v4
54-
with:
55-
dotnet-version: 9.0.x
56-
57-
- name: Build
58-
run: dotnet build --configuration ${{ matrix.configuration }}
59-
60-
- name: Pack
61-
run: dotnet pack --configuration ${{ matrix.configuration }}
62-
6334
build-package:
6435
runs-on: windows-latest
65-
needs: build-all-configs
6636

6737
env:
6838
version_suffix_args: ${{ github.event_name != 'release' && format('--version-suffix "{0}"', inputs.version_suffix_override || format('ci.{0}', github.run_number)) || '' }}
@@ -99,7 +69,7 @@ jobs:
9969
runs-on: ubuntu-latest
10070

10171
permissions:
102-
contents: read
72+
contents: write
10373
packages: write
10474

10575
steps:

0 commit comments

Comments
 (0)