Skip to content

Merge pull request #68 from SixLabors/dependabot/github_actions/peace… #188

Merge pull request #68 from SixLabors/dependabot/github_actions/peace…

Merge pull request #68 from SixLabors/dependabot/github_actions/peace… #188

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
prose:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Vale
uses: errata-ai/vale-action@reviewdog
with:
files: articles/.
env:
# Required
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
deploy:
needs: [prose]
runs-on: windows-latest
if: (github.event_name == 'push')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
# See https://github.com/actions/checkout/issues/165#issuecomment-657673315
- name: Create LFS file list
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
- name: Restore LFS cache
uses: actions/cache@v4
id: lfs-cache
with:
path: .git/lfs
key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }}-v1
- name: Git LFS Pull
run: git lfs pull
- name: Install DocFX
run: choco install docfx -y
- name: Build
shell: pwsh
run: ./build-ci.ps1
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
force_orphan: true