-
Notifications
You must be signed in to change notification settings - Fork 86
47 lines (43 loc) · 1.23 KB
/
release.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
43
44
45
46
47
name: Release plugin
on:
release:
types: [published]
jobs:
release:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
uses: php-actions/composer@v5
with:
command: install
dev: no
version: 1
php_version: 7.4
- name: Remove unsupported PHP 8 symfony/polyfill return types
uses: jacobtomlinson/gha-find-replace@v2
with:
find: ": string|false"
replace: " "
include: "**/symfony/polyfill-intl-{idn,normalizer}/bootstrap80.php"
regex: false
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: cloudflare
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ github.workspace }}/cloudflare.zip
asset_name: cloudflare.zip
asset_content_type: application/zip