Skip to content

Merge pull request #184 from sktelecom/dependabot/npm_and_yarn/hugo-e… #7

Merge pull request #184 from sktelecom/dependabot/npm_and_yarn/hugo-e…

Merge pull request #184 from sktelecom/dependabot/npm_and_yarn/hugo-e… #7

Workflow file for this run

name: Deploy Hugo Site to GitHub Pages
on:
push:
branches: ["master"]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Setup Node (Latest)
uses: actions/setup-node@v4
with:
node-version: 'current'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm install
- name: Build Marp Slides
run: |
npx @marp-team/marp-cli@latest slides/oss-education.md \
--html \
--output static/slides/oss-education.html
- name: Build with Hugo
run: hugo --minify --baseURL "https://sktelecom.github.io/"
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages