Skip to content

Commit

Permalink
Created WP push action
Browse files Browse the repository at this point in the history
  • Loading branch information
kinging123 committed Dec 4, 2020
1 parent 4f686b8 commit c86fc9d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/.wordpress-org
/.git
/.github

.distignore
.gitignore

LICENSE
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to WordPress.org
on:
release:
types: [published]

jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- 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:
SLUG: ivrita
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
- 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}}/${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip

0 comments on commit c86fc9d

Please sign in to comment.