Skip to content

Merge pull request #1562 from GravityPDF/hot-patch-6-11.3 #81

Merge pull request #1562 from GravityPDF/hot-patch-6-11.3

Merge pull request #1562 from GravityPDF/hot-patch-6-11.3 #81

Workflow file for this run

name: Deploy to WordPress.org
on:
push:
tags:
- '*'
jobs:
build-and-deploy:
name: Build and Deploy Plugin
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get tag
id: tag
uses: devops-actions/[email protected]
- name: Setup Node JS
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: General debug information
run: |
npm --version
node --version
yarn --version
curl --version
git --version
svn --version
php --version
composer --version
- name: Build
run: bash ./bin/build.sh $SOURCE_TAG
env:
SOURCE_TAG: ${{steps.tag.outputs.tag}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
run: bash ./bin/deploy.sh
env:
PLUGIN: "gravity-forms-pdf-extended"
SOURCE_TAG: ${{steps.tag.outputs.tag}}
WP_ORG_USERNAME: ${{ secrets.WP_ORG_USERNAME }}
WP_ORG_PASSWORD: ${{ secrets.WP_ORG_PASSWORD }}