2024-01-27 13:18:57 +00:00
|
|
|
name: deploy
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2024-01-27 13:59:53 +00:00
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
2024-06-23 11:14:42 +00:00
|
|
|
node-version: 20.x
|
2024-06-21 06:15:31 +00:00
|
|
|
- run: npm ci
|
2024-01-27 13:18:57 +00:00
|
|
|
- uses: purcell/setup-emacs@master
|
|
|
|
with:
|
|
|
|
version: 29.1
|
|
|
|
- name: "Export org to md"
|
|
|
|
run: emacs -Q --script export.el
|
2024-06-21 06:15:31 +00:00
|
|
|
- run: npm run build
|
2025-02-09 11:19:23 +00:00
|
|
|
- name: "Deploy to Cloudflare Pages"
|
|
|
|
uses: cloudflare/pages-action@v1
|
2024-01-27 13:18:57 +00:00
|
|
|
with:
|
2025-02-09 11:19:23 +00:00
|
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
|
|
accountId: ${{ secrets.ACCOUNT_ID }}
|
|
|
|
projectName: conlang-phundrak-com
|
2025-02-09 11:31:39 +00:00
|
|
|
directory: docs/.vuepress/dist/
|
2025-02-09 11:19:23 +00:00
|
|
|
githubToken: ${{ secrets.TOKEN }}
|