Skip to content

Commit

Permalink
ci: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Dec 27, 2023
1 parent 9e9d3e6 commit b1de468
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# yamllint disable-line rule:document-start
name: release

# yamllint disable-line rule:truthy
on:
workflow_run:
workflows: ["ci"]
branches: [master]
types:
- completed

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup PHP 8.1
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build release
run: composer run-script release:build

- uses: actions/upload-artifact@v4
with:
name: gf-sagepay
path: release/*.zip

lint-wp-org:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: gf-sagepay

- run: unzip gf-sagepay.zip -d /tmp/plugin-source-code
- run: find /tmp/plugin-source-code -name "*.php" -print0 | xargs -n 1 -0 php -l

0 comments on commit b1de468

Please sign in to comment.