Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Update venue map

Update venue map #357

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set timezone to Asia/Taipei
uses: szenius/[email protected]
with:
timezoneLinux: "Asia/Taipei"
timezoneMacos: "Asia/Taipei"
- name: Generate Schedule Json
uses: CCIP-App/schedule-json-generator-action@v1
id: generate
with:
gcp-api-key: ${{ secrets.GCP_API_KEY }}
spreadsheet-key: "198dUX5oH72Q7gaGt_SEPrON-QYNRdAu3f-F2Pg4uFoM"
default-avatar: "https://sitcon.org/2022/imgs/deafult_avatar.jpg"
avatar-base-url: "https://sitcon.org/2022/imgs/speakers/"
# Use the output from the `generate` step
- name: Save session.json
run: echo '${{ steps.generate.outputs.output-json }}' > ./src/assets/session.json
- name: Copy session.json to public/json
run: cp ./src/assets/session.json ./public/json/session.json
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install npm packages
run: npm ci
- name: Generate Session Preview Images
run: |
cd ./utils/preview_generator
npm ci
node index.js
cd ../../
- name: Generate Pages
run: npm run build
- name: Fixed index.html
run: |
cp ./dist/index.html ./dist/200.html
- name: Generate mail
run: |
cd ./utils/mail
npm i
npm run build
mkdir -p ../../dist/mail
cp ./SITCON-2022.html ../../dist/mail/SITCON-2022.html
cp ./SITCON-2022-speaker.html ../../dist/mail/speaker.html
cp -R ./assets ../../dist/mail/assets
cd ../../
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
force_orphan: true