Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rilwis committed Mar 14, 2024
1 parent b773864 commit 6a29db0
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
name: Release new version on WordPress.org
name: Release
on:
workflow_dispatch:
branch:
- master
push:
tags:
- "*"
- "*"
jobs:
tag:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
- name: Notify Slack
run: |
tag=$(git describe --tags `git rev-list --tags --max-count=1`)
curl -X POST --data-urlencode "payload={\"channel\": \"#meta-box\", \"username\": \"Bot\", \"text\": \"New version $tag for Text Limiter has been just released!\", \"icon_emoji\": \":tada:\"}" ${{ secrets.SLACK_WEBHOOK }}
call-workflow:
uses: wpmetabox/meta-box/.github/workflows/wordpressorg.yml@master
secrets:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 6a29db0

Please sign in to comment.