Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
- Update workflow to run on releases
Browse files Browse the repository at this point in the history
- remove env sorting
  • Loading branch information
jasonbahl committed Jul 19, 2021
1 parent 6b460b9 commit b028869
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/upload-schema-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
name: Schema Artifact
name: Upload Schema Artifact

on:
workflow_dispatch:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
release:
types: [ published ]

jobs:
run:
Expand Down Expand Up @@ -51,14 +44,9 @@ jobs:
cd /tmp/wordpress/
# Output: /tmp/schema.graphql
wp graphql generate-static-schema
- name: Upload Schema Artifact
uses: actions/upload-artifact@v2
- name: Upload schema as release artifact
uses: softprops/action-gh-release@v1
with:
name: dist-without-markdown
path: /tmp/schema.graphql
# - name: Upload schema as release artifact
# uses: softprops/action-gh-release@v1
# with:
# files: /tmp/schema.graphql
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
files: /tmp/schema.graphql
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 0 additions & 4 deletions bin/install-test-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ fi

source .env

env | sort

print_usage_instruction() {
echo "Ensure that .env file exist in project root directory exists."
echo "And run the following 'composer build-test' in the project root directory"
Expand Down Expand Up @@ -141,8 +139,6 @@ install_db() {
fi
fi

env | sort

# create database
RESULT=`mysql -u $DB_USER --password="$DB_PASS" --skip-column-names -e "SHOW DATABASES LIKE '$DB_NAME'"$EXTRA`
if [ "$RESULT" != $DB_NAME ]; then
Expand Down

0 comments on commit b028869

Please sign in to comment.