Skip to content

Commit 210b45e

Browse files
deleted the duplicate of the ./deploy.yml file and renamed the new file
1 parent 2644646 commit 210b45e

File tree

3 files changed

+14
-54
lines changed

3 files changed

+14
-54
lines changed

.DS_Store

6 KB
Binary file not shown.

.github/workflows/deploy.yml

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,21 @@ jobs:
99
steps:
1010
- name: Checkout code
1111
uses: actions/checkout@v2
12-
- name: Set up SVN
13-
run: sudo apt-get install -y subversion
14-
- name: Deploy to WordPress.org
12+
- name: WordPress Plugin Deploy
13+
id: deploy
14+
uses: 10up/action-wordpress-plugin-deploy@stable
15+
with:
16+
generate-zip: true
1517
env:
1618
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
1719
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
1820
SLUG: paystack-add-on-for-gravity-forms
19-
run: |
20-
echo "Preparing to deploy to WordPress.org..."
21-
svn co "https://plugins.svn.wordpress.org/${SLUG}/" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" svn
22-
23-
echo "Clearing the trunk folder..."
24-
rm -rf svn/trunk/*
25-
cp -R ./* svn/trunk/
26-
27-
echo "Adding new files to SVN..."
28-
cd svn/trunk/
29-
svn add --force * --auto-props --parents --depth infinity -q
30-
31-
echo "Setting SVN props..."
32-
svn propset svn:ignore -F .svnignore .
33-
34-
echo "Removing deleted files from SVN..."
35-
svn status | grep '^!' | awk '{print $2}' | xargs -I% svn rm %
36-
37-
echo "Committing to WordPress.org..."
38-
svn commit -m "Deploying version ${GITHUB_REF:10}" --username "${SVN_USERNAME}" --password "${SVN_PASSWORD}" --no-auth-cache
39-
40-
echo "Deployment completed!"
21+
- name: Upload release asset
22+
uses: actions/upload-release-asset@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
25+
with:
26+
upload_url: ${{ github.event.release.upload_url }}
27+
asset_path: ${{ steps.deploy.outputs.zip-path }}
28+
asset_name: ${{ github.event.repository.name }}.zip
29+
asset_content_type: application/zip

.github/workflows/deply.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)