v0.3.1 - 2024-09-07 #17
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: Upload Release Package | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
tag: | |
name: Upload New Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 7.4 | |
coverage: none | |
extensions: mbstring, intl | |
tools: composer:v2 | |
- name: Install dependencies | |
run: | | |
composer install --no-dev --optimize-autoloader | |
- name: Create Artifact | |
run: | | |
mkdir plugin-build | |
composer archive -vvv --format=zip --file="plugin-build/wp-graphql-headless-login" | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wp-graphql-headless-login | |
path: plugin-build/wp-graphql-headless-login.zip | |
- name: Upload release asset | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: plugin-build/wp-graphql-headless-login.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |