Skip to content

Publish 2.0.0 to plugin directory #1

Publish 2.0.0 to plugin directory

Publish 2.0.0 to plugin directory #1

name: Publish release to plugin directory
run-name: Publish ${{ inputs.version }} to plugin directory
on:
# Trigger manually from https://github.com/Automattic/wp-openid-connect-server/actions/workflows/publish-release.yml
workflow_dispatch:
inputs:
version:
description: "Version of the release to publish, e.g. 1.2.3"
required: true
type: string
workflow_call:
inputs:
version:
description: "Version of the release to publish, e.g. 1.2.3"
required: true
type: string
secrets:
SVN_USERNAME:
required: true
SVN_PASSWORD:
required: true
jobs:
publish-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build release
# We don't use the release artifacts here, but the script will also create the release directory, and that's
# what will be uploaded to SVN.
run: ./bin/create-release-artifacts.sh ${{ inputs.version }}
- name: Install Subversion
run: sudo apt-get install subversion -y
- name: Deploy to plugin directory
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: false
env:
SLUG: openid-connect-server
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
BUILD_DIR: release/${{ inputs.version }}
VERSION: ${{ inputs.version }}