Skip to content

Commit

Permalink
Update deploy-on-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oakesjosh committed Oct 24, 2024
1 parent 79e259a commit 9e2ad5d
Showing 1 changed file with 33 additions and 35 deletions.
68 changes: 33 additions & 35 deletions .github/workflows/deploy-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,41 +51,12 @@ jobs:
- name: Configure Composer token
run: composer config -g github-oauth.github.com ${{ secrets.COMPOSER_TOKEN }}

- name: Send Slack notification
uses: slackapi/[email protected]
with:
# For posting a rich message using Block Kit
payload: |
{
"text": "*🚀 ${{ github.event.repository.name }} version ${{ github.event.release.tag_name }} deployed!*",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*🚀 ${{ github.event.repository.name }} version ${{ github.event.release.tag_name }} deployed!*",
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*<${{ github.event.release.html_url }}|View Release on GitHub>*"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK


# - name: Build
# run: |
# composer install --no-dev --no-scripts
# composer run strauss-release
# npm install --legacy-peer-deps
# npm run build
- name: Build
run: |
composer install --no-dev --no-scripts
composer run strauss-release
npm install --legacy-peer-deps
npm run build
- name: WordPress Plugin Deploy

Expand Down Expand Up @@ -133,3 +104,30 @@ jobs:
# Provide the file type.
asset_content_type: application/zip

- name: Send Slack notification
uses: slackapi/[email protected]
with:
# For posting a rich message using Block Kit
payload: |
{
"text": "*🚀 ${{ github.event.repository.name }} version ${{ github.event.release.tag_name }} deployed!*",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*🚀 ${{ github.event.repository.name }} version ${{ github.event.release.tag_name }} deployed!*",
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*<${{ github.event.release.html_url }}|View Release on GitHub>*"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 9e2ad5d

Please sign in to comment.