Skip to content

[fix] バージョンの修正 #23

[fix] バージョンの修正

[fix] バージョンの修正 #23

Workflow file for this run

name: deploy-book
on:
# Trigger the workflow on push to main branch
workflow_dispatch:
push:
branches:
- jupyter-book
env:
BASE_URL: /${{ github.event.repository.name }}
# 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-book:
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: make book
run: |
mkdir -p _build/html
echo "test" > _build/html/index.html
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: artifact-book
path: "_build/html"
build-doc:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./myml
steps:
- uses: actions/checkout@v3
- name: make doc
run: |
mkdir -p target/doc/myml
echo "doc" > target/doc/myml/index.html
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
name: artifact-doc
path: "myml/target/doc"
deploy:
needs: [build-book, build-doc]
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
# Merge artifacts
- name: Merge artifacts
id: merge-artifacts
uses: actions/upload-artifact/merge@v4
with:
pattern: 'artifact-*'
delete-merged: true
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2