-
Create a directory at the root of your repo called .github/workflows
-
Place the release.yml from this directory there
-
Place the .goreleaser.yml from this directory at the root of your repo
-
Obtain needed accounts and tokens from the language specific package managers you will use
-
Add any needed tokens to the actions secrets for your repository or organization
-
Customize the release.yml with the correct tokens using the format:
${{ secrets.MyTokenName }}
-
Customize .goreleaser.yml for your provider, paying special attention that the ldlflags are set to match your provider/go.mod exactly:
-X github.com/pulumi/pulumi-aws/provider/v5/pkg/version.Version={{.Tag}}
-
Delete this directory if desired
-
Push a tag to your repo in the format "v0.0.0" to initiate a release
-
IMPORTANT: also add a tag in the format "sdk/v0.0.0" for the Go SDK