Deployment Triggered - true #12
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
# 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 | |
branches: | |
- main | |
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 ci:build:ghpages | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GITHUB_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 "Test conclusion was failure. Deployment cancelled." |