-
-
Notifications
You must be signed in to change notification settings - Fork 3
24 lines (24 loc) · 691 Bytes
/
myget.yml
File metadata and controls
24 lines (24 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: MyGet
on:
push:
branches: [ main, master ]
workflow_dispatch:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set VERSION_SUFFIX
if: ${{ github.event_name == 'push' }}
run: echo "VERSION_SUFFIX=$Env:GITHUB_RUN_NUMBER" >> $Env:GITHUB_ENV
- name: .NET Action
uses: ./.github/actions/dotnet
- name: Push
env:
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
run: dotnet nuget push "./artifacts/*.nupkg" -k $Env:MYGET_API_KEY -s https://www.myget.org/F/quahu/api/v3/index.json --skip-duplicate