deploy #836
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: deploy | |
on: | |
# Trigger on push on master branch | |
push: | |
branches: [master] | |
# Trigger manually | |
workflow_dispatch: | |
# Trigger on "todo-comment.yml" completion | |
# CAUTION it is triggered no matter the sucess state of the previous workflow | |
workflow_run: | |
workflows: ['Add todo entries'] | |
types: | |
- completed | |
jobs: | |
deployment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🔀 Checkout | |
uses: actions/checkout@v4 | |
- name: 🚩 Configure node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- name: 🔧 Install, check and build | |
run: | | |
npm ci | |
npm run prettier | |
npm run build | |
- name: 💬 Create issues for comments | |
run: npm run create-issues -- ${{ secrets.TRAVIS_ACCESS_TOKEN }} false | |
- name: 🚀 Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: docs # The folder the action should deploy. |