Skip to content

Merge pull request #5 from hwahyeon/footer #40

Merge pull request #5 from hwahyeon/footer

Merge pull request #5 from hwahyeon/footer #40

Workflow file for this run

name: Deploy Website
on:
push:
branches: [ main ]
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Default to bash
defaults:
run:
shell: bash
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Check out latest commit
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-go@v2
with:
go-version: '^1.21.5' # The Go version to download (if necessary) and use.
- name: Install hugo
run: |
sudo snap install hugo
- name: Build website with hugo
run: |
hugo mod get
cd themes/ubuntu-blog-hugo && npm i && cd ../../
hugo
- name: Setup Pages
id: pages
uses: actions/configure-pages@v1
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./public
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1