Skip to content

Attempt at building local nuget package. #3

Attempt at building local nuget package.

Attempt at building local nuget package. #3

Workflow file for this run

name: Production
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Add GitHub Nuget Source
run: dotnet nuget add source https://nuget.pkg.github.com/anyways-open/index.json -n anyways -u xivk -p ${{secrets.PACKAGES_SECRET }} --store-password-in-clear-text
- name: Add GitHub Nuget Source
run: dotnet nuget add source https://nuget.pkg.github.com/itinero/index.json -n itinero -u xivk -p ${{secrets.PACKAGES_SECRET }} --store-password-in-clear-text
- name: Add GitHub Nuget Source
run: dotnet nuget add source https://nuget.pkg.github.com/osmsharp/index.json -n osmsharp -u xivk -p ${{secrets.PACKAGES_SECRET }} --store-password-in-clear-text
- name: Add GitHub Nuget Source
run: dotnet nuget add source https://nuget.pkg.github.com/NetTopologySuite/index.json -n nts -u xivk -p ${{secrets.PACKAGES_SECRET }} --store-password-in-clear-text
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Nuget Pack
run: dotnet pack -c release --version-suffix dev
working-directory: ./src/Certify.ACME.Anvil/
- name: Nuget Push
run: dotnet nuget push **/*.nupkg --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/anyways-open/index.json
working-directory: ./src/