Skip to content

Merge pull request #7 from stape-io/tested-up-to-wordpress-6.4 #25

Merge pull request #7 from stape-io/tested-up-to-wordpress-6.4

Merge pull request #7 from stape-io/tested-up-to-wordpress-6.4 #25

Workflow file for this run

name: Create Release and Deploy to WordPress.org
on:
push:
tags:
- '*'
jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- 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: ${{ secrets.SLUG }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{github.workspace}}/${{ secrets.SLUG }}.zip
asset_name: ${{ secrets.SLUG }}.zip
asset_content_type: application/zip