forked from dylan-lang/lsp-dylan
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automation: deploy docs to dylan-lang.github.io
- Loading branch information
Showing
3 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Build and deploy documentation | ||
|
||
on: | ||
push: | ||
# all branches | ||
pull_request: | ||
|
||
# This enables the Run Workflow button on the Actions tab. | ||
workflow_dispatch: | ||
|
||
# https://github.com/JamesIves/github-pages-deploy-action#readme | ||
permissions: | ||
contents: write | ||
|
||
# Set DYLAN environment variable to GITHUB_WORKSPACE so packages are | ||
# installed in ../../_packages relative to documentation's Makefile | ||
env: | ||
DYLAN: ${{ github.workspace }} | ||
|
||
jobs: | ||
|
||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check links | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ghcr.io/fraya/dylan-docs | ||
options: -v ${{ github.workspace }}/documentation:/docs | ||
run: make linkcheck | ||
|
||
- name: Build docs | ||
uses: addnab/docker-run-action@v3 | ||
with: | ||
image: ghcr.io/fraya/dylan-docs | ||
options: -v ${{ github.workspace }}/documentation:/docs | ||
run: make html | ||
|
||
- name: Upload html | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: lsp-dylan | ||
path: documentation/build/html/ | ||
|
||
- name: Bypass Jekyll on GH Pages | ||
run: sudo touch documentation/build/html/.nojekyll | ||
|
||
- name: Deploy docs | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: documentation/build/html |
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
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