v0.1.4 - 2023-10-15 #14
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@v3 | |
- 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@v3 | |
with: | |
name: wp-graphql-headless-login | |
path: plugin-build/wp-graphql-headless-login.zip | |
- name: Upload release asset | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: plugin-build/wp-graphql-headless-login.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |