Update WP build script to update security adviser #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Package for Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
pdf-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
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: Gravity PDF Build | |
run: bash ./bin/build.sh $SOURCE_TAG | |
env: | |
SOURCE_TAG: ${{steps.tag.outputs.tag}} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./tmp/package/gravity-pdf-*.zip | |
generate_release_notes: true | |
append_body: true | |
prerelease: true | |
wp-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-wp.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 }} |