From bb8b797d1a6d5e656371da720d088e96674d0c2e Mon Sep 17 00:00:00 2001 From: Chris Watson Date: Mon, 22 Nov 2021 18:34:02 -0700 Subject: [PATCH] Add release workflow Pushes new releases to Sentry --- .github/workflows/release-workflow.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release-workflow.yml diff --git a/.github/workflows/release-workflow.yml b/.github/workflows/release-workflow.yml new file mode 100644 index 0000000..b631838 --- /dev/null +++ b/.github/workflows/release-workflow.yml @@ -0,0 +1,23 @@ +name: ReleaseWorkflow + +on: + release: + types: [published, prereleased] + + +jobs: + createSentryRelease: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Create a Sentry.io release + uses: tclindner/sentry-releases-action@v1.2.0 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_URL: ${{ secrets.SENTRY_URL }} + SENTRY_ORG: watzon + SENTRY_PROJECT: spamwatchbot + with: + tagName: ${{ github.ref }} + environment: production