Restored original Chrome setup and added Chrome driver and dependencies. #6
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: Push to main | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Chrome | ||
uses: browser-actions/setup-chrome@v1 | ||
install-chromedriver: true | ||
Check failure on line 15 in .github/workflows/push-main.yml
|
||
install-dependencies: true | ||
- name: Setup Pandoc | ||
uses: pandoc/actions/setup@v1 | ||
- name: Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ vars.NODE_VERSION }} | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Start terminal session (pre build) | ||
if: vars.TERMINAL_PRE_BUILD == 'true' | ||
uses: mxschmitt/action-tmate@v3 | ||
- name: Build document | ||
shell: bash | ||
run: | | ||
npm install | ||
npm run pandoc-spec | ||
mkdir pages | ||
mv index.html pages | ||
- name: Start terminal session (post build) | ||
if: vars.TERMINAL_POST_BUILD == 'true' | ||
uses: mxschmitt/action-tmate@v3 | ||
- name: Configure GitHub Pages | ||
uses: actions/configure-pages@v5 | ||
- name: Upload pages directory | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: pages | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |