-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (34 loc) · 1.18 KB
/
templates.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
name: Pack templates
on:
push:
branches: [ main ]
jobs:
github:
runs-on: ubuntu-latest
environment: 'github'
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack FSharp.Mobile.Templates.proj --configuration Release --version-suffix "nightly-${GITHUB_RUN_ID}" --property PackageOutputPath=${PWD}/nupkgs
- name: Push
run: |
dotnet nuget add source https://nuget.pkg.github.com/fabulous-dev/index.json --name github
dotnet nuget push "nupkgs/*" --source github --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
nuget:
runs-on: ubuntu-latest
environment: 'nuget'
needs: github
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Pack
run: dotnet pack FSharp.Mobile.Templates.proj --configuration Release --property PackageOutputPath=${PWD}/nupkgs
- name: Push
run: dotnet nuget push "nupkgs/*" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }} --skip-duplicate