42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
name: Deploy to WordPress.org
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
# This workflow contains a single job called "build"
|
|
tag:
|
|
name: New release
|
|
# The type of runner that the job will run on
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
#- name: Build
|
|
#run: |
|
|
#composer install
|
|
#composer run build
|
|
|
|
- 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 assets
|
|
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
|