release #16
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: release | |
on: | |
workflow_dispatch: | |
inputs: | |
prereleaseSlug: | |
description: 'Prerelease slug (optional)' | |
required: false | |
default: '' | |
type: choice | |
options: | |
- rc | |
- beta | |
- '' | |
jobs: | |
meta: | |
uses: ./.github/workflows/part-compute-version.yml | |
secrets: inherit | |
with: | |
prereleaseSlug: ${{ inputs.prereleaseSlug }} | |
checkTagIsUnique: true | |
build: | |
uses: ./.github/workflows/part-build.yml | |
secrets: inherit | |
needs: meta | |
with: | |
COALESCE_VERSION: ${{ needs.meta.outputs.COALESCE_VERSION }} | |
publish: | |
uses: ./.github/workflows/part-publish.yml | |
needs: [build] | |
secrets: inherit | |
create-release: | |
runs-on: ubuntu-latest | |
needs: [meta, publish] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: rickstaa/action-create-tag@v1 | |
if: ${{ !inputs.prereleaseSlug }} | |
with: | |
tag: ${{ needs.meta.outputs.COALESCE_VERSION }} | |
build-template: | |
uses: ./.github/workflows/part-template-build.yml | |
secrets: inherit | |
needs: [meta, publish] | |
with: | |
# Versioned template build depends upon NPM packages being published, | |
# and nuget packages existing as local artifacts (since Nuget.org is so slow | |
# to make new packages available, we consume the local artifacts instead of waiting). | |
COALESCE_VERSION: ${{ needs.meta.outputs.COALESCE_VERSION }} | |
publish-template: | |
runs-on: ubuntu-latest | |
needs: [build-template] | |
steps: | |
- name: Download Artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: template-packages | |
- name: dotnet nuget push | |
run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }} |