Last active
January 21, 2025 11:45
-
-
Save mehul0810/0dc2605b4615193bd5769a2ced7cefb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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