-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.14 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: 🚀 Release
on:
release:
types: [published]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
source-url: https://nuget.pkg.github.com/lineville/index.json
dotnet-version: 7.0.x
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
- name: 🧪 Test
run: |
dotnet test
- uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
env:
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
- name: 📦 Build
working-directory: ./USTACLI
run: dotnet pack -c Release -o out
- name: 🚀 Publish
working-directory: ./USTACLI
run: dotnet nuget push ./out/*.nupkg --skip-duplicate -n true -k ${{ secrets.NUGET_API_KEY }} --source https://nuget.pkg.github.com/lineville/index.json