Skip to content

feat: add dot js cfp #2648

feat: add dot js cfp

feat: add dot js cfp #2648

Workflow file for this run

name: Deploy GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'
- working-directory: page
run: npm install -D
- name: Parse Markdowns
working-directory: tools
run: |
npm install -D
node mdValidator.js
node mdParser.js
node generateIcs.js
node generateIcs4OpenedCfps.js
node generateRSS.js
node geoCodes.js
- working-directory: page
run: npm run build
- name: Make all-*.json files available at the site root
working-directory: tools
run: |
mv ../page/src/misc/all-events.json ../page/build/all-events.json
mv ../page/src/misc/all-cfps.json ../page/build/all-cfps.json
mv ../page/src/misc/*.ics ../page/build/
mv ../page/src/misc/feed-events.* ../page/build/
- name: Deploy to GitHub Pages
if: github.ref_name == 'main'
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: page/build/
keep_history: true
fqdn: developers.events # CNAME
jekyll: false # Solve website 404
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}