Bump Everest version #21
Workflow file for this run
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: NuGet Publish | |
on: | |
workflow_dispatch: | |
push: | |
tags: [ '*' ] | |
jobs: | |
build: | |
name: Build and publish NuGet package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Fetch all tags | |
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Get current tag | |
run: echo "CURRENT_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet pack CelesteMod.Templates.csproj --configuration Release -p:version=${{env.CURRENT_TAG}} --no-restore | |
- name: Publish | |
run: nuget push bin/Release/CelesteMod.Templates.${{env.CURRENT_TAG}}.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} |