Merge branch 'main' of https://github.com/SixLabors/docs #175
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: 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@master | |
# 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@v3 | |
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 | |