Skip to content

Commit

Permalink
Refactored push-to-main workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
KDean-Dolphin committed Jan 29, 2025
1 parent 69f256d commit b6018f4
Showing 1 changed file with 4 additions and 39 deletions.
43 changes: 4 additions & 39 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,44 +14,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Setup Pandoc
uses: pandoc/actions/setup@v1

- name: Setup node
uses: actions/setup-node@v4
- name: Pandoc specification builder
uses: legreq/pandoc-spec@main
with:
include-repository: true
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
include-pages: true

0 comments on commit b6018f4

Please sign in to comment.