-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to pulumi/ci-mgmt#915 ## Update local build process - We already have "respectSchemaVersion" set in the schema, but we don't have a version set in the schema so it had no effect. - Set the version in the schema via the generate program - passed in as a new argument. - Move generation of the go.mod stubs into the generate step so `make generate` doesn't leave a dirty working tree. - Remove sed from nodejs build - just copy the package which now already has the version set. - Fix setting the `PACKAGE_VERSION` env var for the Java build - makefile variables are not env variables. - Rename `VERSION` to `PROVIDER_VERSION` to match other providers. ## Update CI - Set `PROVIDER_VERSION` in all workflows. - Use new working tree clean check to allow for changes to the version number in the SDK. - Use new Go SDK publish action to push a new commit & tag ## Additional work - Switch to using `pulumi package gen-sdk` wherein we also bump up to the latest version of pulumi. - Fix broken tests: - Fix type change in Go. - Remove need for AWS_REGION env. - Use explicit provider path instead of $PATH now we're specifying the version in the SDK. - Actually run the python test. - Add release verification - where we test the actual published SDK is usable in Go, Nodejs and Python.
- Loading branch information
1 parent
062c047
commit b978236
Showing
57 changed files
with
886 additions
and
650 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,21 @@ on: | |
tags: | ||
- v*.*.* | ||
jobs: | ||
dispatch_publish: | ||
name: Dispatch Release Workflow | ||
version: | ||
name: Calculate version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.format_version.outputs.version }} | ||
steps: | ||
- id: format_version | ||
# Replace the leading v | ||
# Outputs must be in the form `var=` so we can access the value | ||
run: echo "${{ github.ref_name }}" | sed "s/^v/version=/" >> $GITHUB_OUTPUT | ||
- name: Dispatch Release Workflow | ||
uses: benc-uk/[email protected] | ||
with: | ||
workflow: release.yml | ||
inputs: '{ "version": "${{ steps.format_version.outputs.version }}" }' | ||
run: echo "${{ github.ref_name }}" | sed "s/^v/version=/" >> "${GITHUB_OUTPUT}" | ||
|
||
release: | ||
name: Release | ||
uses: ./.github/workflows/release.yml | ||
needs: version | ||
secrets: inherit | ||
with: | ||
version: ${{ needs.version.outputs.version }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.126.0 |
Oops, something went wrong.