Skip to content

fix: checkout patch file #21

fix: checkout patch file

fix: checkout patch file #21

Workflow file for this run

# This file was created automatically with `myst init --gh-pages` 🪄 💚
# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.
name: MyST GitHub Pages Deploy
on:
push:
# Runs on pushes targeting the default branch
branches: [main]
env:
# `BASE_URL` determines the website is served from, including CSS & JS assets
# You may need to change this to `BASE_URL: ''`
BASE_URL: /${{ github.event.repository.name }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-theme:

Check failure on line 25 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: jupyter-book/myst-theme
ref: agoose77/wip-landing-page
- uses: actions/checkout@v3
with:
sparse-checkout: |
class.patch
- name: Apply patch
run: git apply ./class.patch
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Run deploy
run: make build-book
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: book-theme
path: "./.deploy/book/"
deploy:
needs: build-theme
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install MyST Markdown
run: npm install -g mystmd
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: book-theme
path: "./theme/"
- name: Set theme zip
run: |
sed "s#book-theme#./theme/#" -i myst.yml
cat ./myst.yml
ls ./theme
- name: Build HTML Assets
run: myst build --html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./_build/html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4