Github workflows updated

This commit is contained in:
Geoff Taylor
2020-08-04 20:16:42 -04:00
parent 1b78f92ec6
commit 1039e6a2cb
3 changed files with 36 additions and 13 deletions
+27 -11
View File
@@ -1,13 +1,14 @@
name: build_release
on:
release:
types: [published]
push:
tags:
- "v*"
jobs:
run:
runs-on: ubuntu-latest
build_release:
name: "Build Release"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
@@ -22,12 +23,27 @@ jobs:
- name: Install dependencies
run: composer install --no-dev
- name: Remove unneeded files
run: |
rm -rf composer.json composer.lock tests \
coveralls.yml netlify.toml docker docs vendor \
bin .github .env.dist phpcs.xml .dockerignore \
codeception.dist.yml .editorconfig .gitignore .git
- name: List files
run: ls -laR
- name: Generate draft release
uses: meeDamian/github-release@2.0
with:
token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
draft: true
title: "Release {{ github.ref }}"
gzip: true
files: >
includes/
vendor/
.distignore
access-functions.php
CHANGELOG.md
class-inflect.php
LICENSE
logo.svg
README.md
README.txt
SECURITY.md
wp-graphql-woocommerce.php
+8 -1
View File
@@ -17,7 +17,7 @@ on:
- '!docs/**'
jobs:
run:
continuous_integration:
env:
STRIPE_API_PUBLISHABLE_KEY: ${{ secrets.STRIPE_API_PUBLISHABLE_KEY }}
STRIPE_API_SECRET_KEY: ${{ secrets.STRIPE_API_SECRET_KEY }}
@@ -49,6 +49,13 @@ jobs:
php-version: ${{ matrix.php }}
extensions: json, mbstring
- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Install dependencies
run: composer install --no-dev
- name: Build "testing" Docker Image
env:
PHP_VERSION: ${{ matrix.php }}
+1 -1
View File
@@ -15,7 +15,7 @@ on:
- '!docs/**'
jobs:
run:
lint_code:
runs-on: ubuntu-latest
name: "Lint code with PHPCS"
steps: