-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# template from https://github.com/JamesIves/github-pages-deploy-action/tree/dev | ||
|
||
name: CI | ||
|
||
run-name: Deployment Triggered - ${{ github.event.workflow_run.conclusion == 'success'}} | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Run tests"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
build-and-deploy: | ||
#concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install and Build 🔧 | ||
run: | | ||
npm install | ||
npm run-script build | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
folder: dist/word-weaver # The folder the action should deploy. | ||
|
||
on-failure: | ||
name: Validation Failed | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | ||
steps: | ||
- run: echo "Tests conclusion was failure. Deployment not ran." |