|
1 | | -name: Thunderstore |
2 | | -on: |
3 | | - release: |
4 | | - types: released |
5 | | - |
6 | | -env: |
7 | | - DOTNET_CLI_TELEMETRY_OPTOUT: true |
8 | | - MSBUILDTERMINALLOGGER: false |
9 | | - DOTNET_VERSION: 9.0.x |
10 | | - |
11 | | -jobs: |
12 | | - publish: |
13 | | - name: Publish |
14 | | - runs-on: ubuntu-latest |
15 | | - permissions: |
16 | | - contents: read |
17 | | - packages: read |
18 | | - steps: |
19 | | - - name: Checkout |
20 | | - uses: actions/checkout@v5 |
21 | | - with: |
22 | | - ref: ${{ github.event.release.tag_name }} |
23 | | - fetch-depth: 0 |
24 | | - filter: tree:0 |
25 | | - - name: Setup .NET |
26 | | - uses: actions/setup-dotnet@v5 |
27 | | - with: |
28 | | - dotnet-version: ${{ env.DOTNET_VERSION }} |
29 | | - - name: Login to GitHub Packages |
30 | | - run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --store-password-in-clear-text |
31 | | - - id: build |
32 | | - name: Build and publish |
33 | | - env: |
34 | | - TCLI_AUTH_TOKEN: ${{ secrets.TCLI_AUTH_TOKEN }} |
35 | | - run: | |
36 | | - dotnet build -c Release -target:PublishTS |
37 | | - FILE=$(find ${{ github.workspace }}/artifacts/thunderstore -type f -name "*.zip" | head -n 1) |
38 | | - [ -n "$FILE" ] || { echo "Artifact not found!"; exit 1; } |
39 | | - echo "file=$FILE" >> "$GITHUB_OUTPUT" |
40 | | - - name: Upload artifact |
41 | | - uses: actions/upload-artifact@v4 |
42 | | - with: |
43 | | - path: ${{ steps.build.outputs.file }} |
| 1 | +name: Thunderstore |
| 2 | +on: |
| 3 | + release: |
| 4 | + types: released |
| 5 | + |
| 6 | +env: |
| 7 | + DOTNET_CLI_TELEMETRY_OPTOUT: true |
| 8 | + MSBUILDTERMINALLOGGER: false |
| 9 | + DOTNET_VERSION: 9.0.x |
| 10 | + |
| 11 | +jobs: |
| 12 | + publish: |
| 13 | + name: Publish |
| 14 | + runs-on: ubuntu-latest |
| 15 | + permissions: |
| 16 | + contents: write |
| 17 | + packages: read |
| 18 | + steps: |
| 19 | + - name: Checkout |
| 20 | + uses: actions/checkout@v5 |
| 21 | + with: |
| 22 | + ref: ${{ github.event.release.tag_name }} |
| 23 | + fetch-depth: 0 |
| 24 | + filter: tree:0 |
| 25 | + - name: Setup .NET |
| 26 | + uses: actions/setup-dotnet@v5 |
| 27 | + with: |
| 28 | + dotnet-version: ${{ env.DOTNET_VERSION }} |
| 29 | + - name: Login to GitHub Packages |
| 30 | + run: dotnet nuget add source --username ${{ github.actor }} --password ${{ github.token }} --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --store-password-in-clear-text |
| 31 | + - id: build |
| 32 | + name: Build and publish |
| 33 | + env: |
| 34 | + TCLI_AUTH_TOKEN: ${{ secrets.TCLI_AUTH_TOKEN }} |
| 35 | + run: | |
| 36 | + dotnet build -c Release -target:PublishTS |
| 37 | + FILE=$(find ${{ github.workspace }}/artifacts/thunderstore -type f -name "*.zip" | head -n 1) |
| 38 | + [ -n "$FILE" ] || { echo "Artifact not found!"; exit 1; } |
| 39 | + echo "file=$FILE" >> "$GITHUB_OUTPUT" |
| 40 | + - name: Upload artifact |
| 41 | + uses: actions/upload-artifact@v4 |
| 42 | + with: |
| 43 | + path: ${{ steps.build.outputs.file }} |
0 commit comments