Skip to content

Merge pull request #29 from fabulous-dev/edgarfgp-patch-1 #38

Merge pull request #29 from fabulous-dev/edgarfgp-patch-1

Merge pull request #29 from fabulous-dev/edgarfgp-patch-1 #38

Workflow file for this run

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: 7.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: 7.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