Merge pull request #30 from fabulous-dev/preview-net8.0 #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |