-
Notifications
You must be signed in to change notification settings - Fork 2
22 lines (22 loc) · 844 Bytes
/
dotorg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
- name: Notify Slack
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
name=$(basename -s .git $(git config --get remote.origin.url))
tag=$(git describe --tags `git rev-list --tags --max-count=1`)
curl -X POST --data-urlencode "payload={\"channel\": \"#autolistings\", \"username\": \"Bot\", \"text\": \"New version $tag for $name has been just released!\", \"icon_emoji\": \":tada:\"}" ${{ secrets.SLACK_WEBHOOK }}