Fix typos in Vim post #441
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: Lint, Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install Prettier | |
run: sudo npm install --global prettier | |
- name: Lint | |
run: prettier --check content | |
build: | |
name: Build | |
needs: lint | |
runs-on: ubuntu-latest | |
env: | |
HUGO_VERSION: 0.121.1 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Install Hugo | |
run: | | |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ | |
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb | |
- name: Build | |
run: hugo --minify | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: ./public | |
deploy: | |
name: Deploy | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: Configure Deployment | |
uses: actions/configure-pages@v4 | |
- name: Deploy | |
id: deployment | |
uses: actions/deploy-pages@v3 |