Skip to content

Commit

Permalink
update deploy doc
Browse files Browse the repository at this point in the history
  • Loading branch information
twoelevenjay committed Oct 28, 2024
1 parent 982637d commit b22eedc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,26 @@ jobs:
with:
node-version: 'lts/*' # Use latest LTS version of Node.js

# Step 3: Install Node.js dependencies (if you have any, can be skipped if not needed)
# - name: Install dependencies
# run: npm install
# Step 3: Install Node.js dependencies (if you have any)
- name: Install dependencies
run: npm install

# Step 4: Generate readme.txt using the Node.js script in .github/scripts/
- name: Generate readme.txt
run: node .github/scripts/generate-readme.js

# Step 5: Install Subversion
- name: Install Subversion
run: sudo apt-get install subversion
run: sudo apt-get install -y subversion

# Step 6: Deploy to WordPress SVN /trunk/
- name: Deploy to WordPress SVN /trunk/
env:
SVN_USERNAME: ${{ secrets.WORDPRESS_USERNAME }}
SVN_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
run: |
svn co https://plugins.svn.wordpress.org/discontinued-products/ svn-dir
rsync -av --delete --exclude=".git" ./ svn-dir/trunk/ | tee rsync-output.log
svn co https://plugins.svn.wordpress.org/discontinued-products/ svn-dir --username $SVN_USERNAME --password $SVN_PASSWORD --non-interactive
rsync -av --delete --exclude=".git" ./ svn-dir/trunk/
cp .github/temp/readme.txt svn-dir/trunk/readme.txt # Copy the newly generated readme.txt
cd svn-dir
svn add --force trunk/*
Expand All @@ -52,4 +52,4 @@ jobs:
SVN_PASSWORD: ${{ secrets.WORDPRESS_PASSWORD }}
run: |
VERSION=${GITHUB_REF/refs\/tags\/v/}
svn cp https://plugins.svn.wordpress.org/discontinued-products/trunk https://plugins.svn.wordpress.org/discontinued-products/tags/$VERSION -m "Tagging version $VERSION" --username $SVN_USERNAME --password $SVN_PASSWORD --non-interactive
svn cp https://plugins.svn.wordpress.org/discontinued-products/trunk https://plugins.svn.wordpress.org/discontinued-products/tags/$VERSION -m "Tagging version $VERSION" --username $SVN_USERNAME --password $SVN_PASSWORD --non-interactive

0 comments on commit b22eedc

Please sign in to comment.