-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
274 changed files
with
6,756 additions
and
6,537 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,69 @@ | ||
name: docs | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
|
||
build_docs: | ||
runs-on: ubuntu-latest | ||
env: | ||
TARGET_PLATFORM: emscripten-wasm32 | ||
GITHUB_OWNER: "emscripten-forge" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
emsdk_ver: ["3.1.45"] | ||
|
||
steps: | ||
################################################################ | ||
# SETUP | ||
################################################################ | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
################################################################ | ||
# CONFIG | ||
################################################################ | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.20.1 | ||
- run: | | ||
pixi run docs-build -d docs_build | ||
################################################################ | ||
# upload to github pages | ||
################################################################ | ||
- name: Upload Pages artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: docs_build | ||
|
||
deploy: | ||
# only run on main branch | ||
if: github.ref == 'refs/heads/main' && github.repository == 'emscripten-forge/recipes' | ||
|
||
# Add a dependency to the build job | ||
needs: build_docs | ||
|
||
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | ||
permissions: | ||
contents: read # to read the Pages artifact | ||
pages: write # to deploy to Pages | ||
id-token: write # to verify the deployment originates from an appropriate source | ||
|
||
# Deploy to the github-pages environment | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v3 # or specific "vX.X.X" version tag for this action |
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
Oops, something went wrong.