-
Notifications
You must be signed in to change notification settings - Fork 125
42 lines (38 loc) · 1.09 KB
/
wp-svn-autopublish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: WordPress SVN auto-publisher
on:
push:
tags:
- 'v?[0-9]+.[0-9]+'
- 'v?[0-9]+.[0-9]+-*'
- 'v?[0-9]+.[0-9]+.[0-9]+'
- 'v?[0-9]+.[0-9]+.[0-9]+-*'
- 'v?[0-9]+.[0-9]+.[0-9]+.[0-9]+'
- 'v?[0-9]+.[0-9]+.[0-9]+.[0-9]+-*'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Check that the secret is set
env:
WPSVN_USERNAME: ${{ secrets.WPSVN_USERNAME }}
WPSVN_PASSWORD: ${{ secrets.WPSVN_PASSWORD }}
run: |
EXIT=0
if [[ -z "$WPSVN_USERNAME" ]]; then
echo '::error::The secret WPSVN_USERNAME must be set.'
EXIT=1
fi
if [[ -z "$WPSVN_PASSWORD" ]]; then
echo '::error::The secret WPSVN_PASSWORD must be set.'
EXIT=1
fi
exit $EXIT
- uses: actions/checkout@v4
with:
path: src
- name: Publish
env:
WPSVN_USERNAME: ${{ secrets.WPSVN_USERNAME }}
WPSVN_PASSWORD: ${{ secrets.WPSVN_PASSWORD }}
run: ./src/.github/files/wp-svn-autopublish.sh