diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bd8bb24c..31b7602f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -118,69 +118,3 @@ jobs: - env: REF_NAME: ${{ github.ref_name }} run: node npm/publish.js "$REF_NAME" - - newsletter-draft: - name: Draft newsletter - runs-on: ubuntu-latest - if: ${{ github.ref_type == 'tag' }} - needs: - - release - steps: - - uses: ory/ci/newsletter@master - with: - mailchimp_list_id: 058a056618 - mailchmip_segment_id: 11398953 - mailchimp_api_key: ${{ secrets.MAILCHIMP_API_KEY }} - draft: "true" - ssh_key: ${{ secrets.ORY_BOT_SSH_KEY }} - - slack-approval-notification: - name: Pending approval Slack notification - runs-on: ubuntu-latest - if: ${{ github.ref_type == 'tag' }} - needs: - - newsletter-draft - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - steps: - - uses: slackapi/slack-github-action@v1.16.0 - with: - payload: | - { - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Pending approval for newsletter send (*${{ github.repository }}*)" - }, - "accessory": { - "type": "button", - "text": { - "type": "plain_text", - "text": "View workflow", - "emoji": true - }, - "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}", - "action_id": "workflow_link" - } - } - ] - } - - newsletter-send: - name: Send newsletter - runs-on: ubuntu-latest - needs: - - newsletter-draft - if: ${{ github.ref_type == 'tag' }} - environment: production - steps: - - uses: ory/ci/newsletter@master - with: - mailchimp_list_id: 058a056618 - mailchmip_segment_id: 11398953 - mailchimp_api_key: ${{ secrets.MAILCHIMP_API_KEY }} - draft: "false" - ssh_key: ${{ secrets.ORY_BOT_SSH_KEY }}