update: first working release #4
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: Build and Deploy | |
on: | |
push: | |
schedule: | |
- cron: '0 00 * * *' # At 00:00 everyday | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
create-current: | |
# the job runs a js script to create a current.json file | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Create current.json 📝 | |
run: node ./builder/builder.js | |
- name: Move current.json 📝 | |
run: mv current.json src/current.json | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: src # The folder the action should deploy. |