91 lines
2.5 KiB
YAML
91 lines
2.5 KiB
YAML
# WARNING: This file is autogenerated - changes will be overwritten when regenerated by https://github.com/pulumi/ci-mgmt
|
|
name: release
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*.*.*
|
|
- "!v*.*.*-**"
|
|
|
|
env:
|
|
PULUMI_API: https://api.pulumi-staging.io
|
|
PULUMI_GO_DEP_ROOT: ${{ github.workspace }}/..
|
|
PULUMI_LOCAL_NUGET: ${{ github.workspace }}/nuget
|
|
PULUMI_PROVIDER_AUTOMATION_TOKEN: ${{ secrets.PULUMI_PROVIDER_AUTOMATION_TOKEN }}
|
|
PULUMI_PULUMI_ENABLE_JOURNALING: "true"
|
|
TF_APPEND_USER_AGENT: pulumi
|
|
|
|
jobs:
|
|
prerequisites:
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
id-token: write # For ESC secrets.
|
|
uses: ./.github/workflows/prerequisites.yml
|
|
secrets: inherit
|
|
with:
|
|
default_branch: ${{ github.event.repository.default_branch }}
|
|
is_pr: ${{ github.event_name == 'pull_request' }}
|
|
is_automated: ${{ github.actor == 'dependabot[bot]' }}
|
|
|
|
build_provider:
|
|
uses: ./.github/workflows/build_provider.yml
|
|
needs: prerequisites
|
|
secrets: inherit
|
|
permissions:
|
|
contents: read
|
|
id-token: write # For ESC secrets.
|
|
with:
|
|
version: ${{ needs.prerequisites.outputs.version }}
|
|
|
|
build_sdk:
|
|
name: build_sdk
|
|
needs: prerequisites
|
|
uses: ./.github/workflows/build_sdk.yml
|
|
secrets: inherit
|
|
permissions:
|
|
contents: write # For Renovate SDKs.
|
|
id-token: write # For ESC secrets.
|
|
with:
|
|
version: ${{ needs.prerequisites.outputs.version }}
|
|
|
|
lint:
|
|
name: lint
|
|
uses: ./.github/workflows/lint.yml
|
|
secrets: inherit
|
|
license_check:
|
|
name: License Check
|
|
uses: ./.github/workflows/license.yml
|
|
secrets: inherit
|
|
|
|
publish:
|
|
name: publish
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
id-token: write
|
|
needs:
|
|
- prerequisites
|
|
- build_provider
|
|
- test
|
|
- license_check
|
|
uses: ./.github/workflows/publish.yml
|
|
secrets: inherit
|
|
with:
|
|
version: ${{ needs.prerequisites.outputs.version }}
|
|
isPrerelease: false
|
|
# Only tags on the default branch should set the release as `latest`; backported releases (tagged on a feature branch) should not.
|
|
setLatestRelease: ${{ github.event.base_ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
|
|
|
test:
|
|
uses: ./.github/workflows/test.yml
|
|
needs:
|
|
- prerequisites
|
|
- build_provider
|
|
- build_sdk
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
secrets: inherit
|
|
with:
|
|
version: ${{ needs.prerequisites.outputs.version }}
|