Skip to content

Instantly share code, notes, and snippets.

@mehul0810
Last active January 21, 2025 11:45
Show Gist options
  • Save mehul0810/0dc2605b4615193bd5769a2ced7cefb7 to your computer and use it in GitHub Desktop.
Save mehul0810/0dc2605b4615193bd5769a2ced7cefb7 to your computer and use it in GitHub Desktop.
name: Deploy to WordPress.org
on:
release:
types: [ released ]
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Install SVN
run: |
sudo apt-get update
sudo apt-get install -y subversion
- name: Checkout code
uses: actions/checkout@v2
- 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: smart-appointment-booking
- 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}}/smart-appointment-booking.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment