Skip to content

Commit da1bde8

Browse files
committed
Try another script
1 parent 73af062 commit da1bde8

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ name: Deploy FedaPay Woocommerce Plugin
22

33
on:
44
push:
5-
tags:
6-
- '*'
5+
tags: "*"
6+
env:
7+
SVN_REPOSITORY: ${{ vars.SVN_REPOSITORY }}
8+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
9+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
710

811
jobs:
912
build:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v2
1316

14-
- name: WordPress Plugin Deploy
15-
id: deploy
16-
uses: richard-muvirimi/deploy-wordpress-plugin@development
17-
with:
18-
svn-username: ${{ secrets.SVN_USERNAME }}
19-
svn-password: ${{ secrets.SVN_PASSWORD }}
20-
plugin-repository: woo-gateway-fedapay
17+
- name: Install SVN ( Subversion )
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install subversion
21+
22+
- name: Deploy script
23+
run: bash ./deploy/deploy.sh

deploy/deploy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ rm -rf wordpress_org_assets/ deploy/
1313
# 4. Copy git repository contents to SNV trunk/ directory
1414
rsync -r -p ./* $SVN_DIR/trunk/
1515

16+
echo $GITHUB_REF_NAME
17+
1618
# 5. Create SVN tag
1719
mkdir -p $SVN_DIR/tags/$GITHUB_REF_NAME
1820
rsync -r -p ./* $SVN_DIR/tags/$GITHUB_REF_NAME

0 commit comments

Comments
 (0)