Skip to content

Merge pull request #7 from Happypig375/patch-1 #15

Merge pull request #7 from Happypig375/patch-1

Merge pull request #7 from Happypig375/patch-1 #15

Workflow file for this run

name: Pack template
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: 6.0.x
- name: Pack
run: dotnet pack FSharp.Android.Resource.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/*.nupkg" --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: 6.0.x
- name: Pack
run: dotnet pack FSharp.Android.Resource.proj --configuration Release --property PackageOutputPath=${PWD}/nupkgs
- name: Push
run: dotnet nuget push "nupkgs/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate