diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..95e924b --- /dev/null +++ b/.distignore @@ -0,0 +1,6 @@ +/.wordpress-org +/.git +/.github + +.distignore +.gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..87b71d4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Directories +/.wordpress-org export-ignore +/.github export-ignore + +# Files +/.gitattributes export-ignore +/.gitignore export-ignore diff --git a/.github/workflows/wp-release.yml b/.github/workflows/wp-release.yml new file mode 100644 index 0000000..fe4d2d7 --- /dev/null +++ b/.github/workflows/wp-release.yml @@ -0,0 +1,28 @@ +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: + 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