-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (40 loc) · 1.29 KB
/
wordpress-deploy.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
name: Deploy to WordPress.org
on:
release:
types: [published]
jobs:
build:
if: "!github.event.release.prerelease"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install SVN ( Subversion )
run: |
sudo apt-get update
sudo apt-get install subversion
- run: rm composer.lock
- name: Install dependencies
run: composer install --no-interaction --prefer-source
- name: Run strauss
run: composer prefix-namespaces
- name: FIX ROSPDF includes and fonts
run: cp -r vendor/rospdf/pdf-php/src/{include,fonts} vendor_build/rospdf/pdf-php/src/
- name: Remove vendor
run: rm -r vendor
- run: composer dump-autoload
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: wc-invoice-pdf
ASSETS_DIR: assets
- name: Upload release asset
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ github.workspace }}/${{ github.event.repository.name }}.zip