Skip to content

Commit 6d0ed04

Browse files
authored
Update deploy.yml
1 parent f493818 commit 6d0ed04

1 file changed

Lines changed: 4 additions & 38 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,11 @@
1-
# Simple workflow for deploying static content to GitHub Pages
2-
name: Deploy static content to Pages
1+
name: Publish the book to Pages
32

43
on:
5-
# Runs on pushes targeting the default branch
64
push:
75
branches: ["main"]
8-
9-
# Allows you to run this workflow manually from the Actions tab
6+
107
workflow_dispatch:
118

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13-
permissions:
14-
contents: read
15-
pages: write
16-
id-token: write
17-
18-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20-
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
23-
249
jobs:
25-
build_book:
26-
uses: originlab/originlab.github.io/.github/workflows/build_book.yml@main
27-
deploy:
28-
needs: build_book
29-
environment:
30-
name: github-pages
31-
url: ${{ steps.deployment.outputs.page_url }}
32-
runs-on: ubuntu-latest
33-
steps:
34-
- name: Download book artifact
35-
uses: actions/download-artifact@v8
36-
with:
37-
name: book
38-
path: _site
39-
- name: Setup Pages
40-
uses: actions/configure-pages@v6
41-
- name: Upload pages artifact
42-
uses: actions/upload-pages-artifact@v5
43-
- name: Deploy to GitHub Pages
44-
id: deployment
45-
uses: actions/deploy-pages@v5
10+
publish_book:
11+
uses: originlab/originlab.github.io/.github/workflows/publish_book.yml@main

0 commit comments

Comments
 (0)