diff --git a/.github/workflows/release-announcements-publish.yml b/.github/workflows/release-announcements-publish.yml new file mode 100644 index 0000000000..449db9269d --- /dev/null +++ b/.github/workflows/release-announcements-publish.yml @@ -0,0 +1,30 @@ +name: Release Announcements - Publish + +on: + workflow_dispatch: + inputs: + version: + description: The version to publish + required: true + type: string + +permissions: + actions: write + contents: read + issues: write + +jobs: + deploy-schema: + name: Deploy Schema + uses: spring-io/spring-security-release-tools/.github/workflows/deploy-schema.yml@d6c65d3013c0888e2c9cbae9f4beda610994776c # v1.0.16 + with: + should-deploy-schema: true + secrets: inherit + publish-release-announcements: + name: Publish Release Announcements + needs: [ deploy-schema ] + if: ${{ !github.event.repository.fork }} + uses: spring-io/spring-security-release-tools/.github/workflows/release-announcements-publish.yml@d6c65d3013c0888e2c9cbae9f4beda610994776c # v1.0.16 + with: + version: ${{ inputs.version }} + secrets: inherit diff --git a/.github/workflows/release-announcements-stage.yml b/.github/workflows/release-announcements-stage.yml new file mode 100644 index 0000000000..fd1c6da47d --- /dev/null +++ b/.github/workflows/release-announcements-stage.yml @@ -0,0 +1,24 @@ +name: Release Announcements - Stage + +on: + push: + tags: + - '[0-9]+.[0-9]+.[0-9]+' + workflow_dispatch: + inputs: + version: + description: The version to stage + required: true + type: string + +permissions: + contents: read + +jobs: + stage-release-announcements: + name: Stage Release Announcements + if: ${{ !github.event.repository.fork }} + uses: spring-io/spring-security-release-tools/.github/workflows/release-announcements-stage.yml@d6c65d3013c0888e2c9cbae9f4beda610994776c # v1.0.16 + with: + version: ${{ inputs.version || github.ref_name }} + secrets: inherit