diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 272ec52e90..54114900fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,8 +12,6 @@ name: Release on: push: - branches: - - master tags: - 'v*' jobs: diff --git a/.github/workflows/tag-checks.yml b/.github/workflows/tag-checks.yml index 59f9763426..599df07afb 100644 --- a/.github/workflows/tag-checks.yml +++ b/.github/workflows/tag-checks.yml @@ -13,8 +13,10 @@ jobs: strategy: matrix: # On version change, add new version here + # On breaking changes, by definition past version mays no longer work. Wipe version at that point. # Skip v0.1.2, which was merged despite broken tests - tag: [v0.1.0, v0.1.1, v0.1.3, v0.1.4, v0.1.5] + tag: [v0.1.0, v0.1.1, v0.1.3, v0.1.4, v0.1.5, v0.1.6, v0.1.7, v0.1.8, v0.1.9, v0.2.0] + fail-fast: false steps: - name: Check out repository code of tag uses: actions/checkout@v3 diff --git a/Makefile b/Makefile index 3895ea11d3..86445df6eb 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ NAMESPACE=pam NAME=oktapam BINARY=terraform-provider-${NAME} # On verion changes, update tag-checks.yml -VERSION=0.1.5 +VERSION=0.2.1 OS_ARCH=$(shell go env GOOS)_$(shell go env GOARCH) PLUGIN_DIR=~/.terraform.d/plugins diff --git a/README.md b/README.md index e5ad94be79..9bac1d7206 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,6 @@ export OKTAPAM_API_HOST="https://my.testing.domain" export OKTAPAM_TRUSTED_DOMAIN_OVERRIDE="my.testing.domain" ``` - Developing the Provider --------------------------- To compile the provider, run `make build`. This will build the provider and put in the project directory @@ -82,3 +81,10 @@ In order to run the full suite of Acceptance tests, run `make testacc`. ```sh $ make testacc ``` + +Releasing the Provider +--------------------------- +1. Bump version in `Makefile`. +2. Add last version to `tag-checks.yml`. +3. Merge and make tag corresponding to the new version. +4. Make release corresponding to new tag. \ No newline at end of file