diff --git a/.github/workflows/man_0_assign_version.yml b/.github/workflows/man_0_assign_version.yml index 21e087b84..16ef9d003 100644 --- a/.github/workflows/man_0_assign_version.yml +++ b/.github/workflows/man_0_assign_version.yml @@ -31,8 +31,14 @@ permissions: contents: read jobs: + license: + name: License Scanner + uses: AgnostiqHQ/covalent/.github/workflows/license.yml@develop + version_assigner: name: Assign Version + needs: + - license if: > !github.event.inputs.check_tests uses: AgnostiqHQ/covalent/.github/workflows/changelog.yml@develop diff --git a/.github/workflows/man_2_create_release.yml b/.github/workflows/man_2_create_release.yml index dc6ab0f7e..52944feff 100644 --- a/.github/workflows/man_2_create_release.yml +++ b/.github/workflows/man_2_create_release.yml @@ -31,3 +31,36 @@ permissions: contents: read jobs: + create_release: + name: Create a Prerelease + uses: AgnostiqHQ/covalent/.github/workflows/release.yml@develop + if: > + !github.event.inputs.check_push_to_master + with: + prerelease: true + secrets: inherit # pragma: allowlist secret + + notify_slack: + name: Notify on Slack + needs: + - create_release + runs-on: ubuntu-latest + steps: + - name: Checkout master + uses: actions/checkout@v4 + with: + ref: "master" + + - name: Format Slack message + run: | + VERSION="$(cat ./VERSION)" + SLACK_MSG=":rocket: Version $VERSION is now available." + echo "SLACK_MSG=$SLACK_MSG" >> $GITHUB_ENV + + - name: Notify Slack + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_CHANNEL: "covalent-ci" + SLACK_USERNAME: "CovalentOpsBot" + SLACK_MESSAGE: ${{ env.SLACK_MSG }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}