Skip to content

Commit 0af4345

Browse files
authored
Update deploy.yml
1 parent ea922f1 commit 0af4345

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,24 @@ concurrency:
2222
cancel-in-progress: false
2323

2424
jobs:
25-
25+
build_book:
26+
uses: originlab/originlab.github.io/.github/workflows/build_book.yml@main
2627
deploy:
28+
needs: build_book
2729
environment:
2830
name: github-pages
2931
url: ${{ steps.deployment.outputs.page_url }}
30-
env:
31-
book_folder: ${{ github.event.repository.name }}
3232
runs-on: ubuntu-latest
3333
steps:
34-
- name: Checkout Source
35-
uses: actions/checkout@v6
36-
with:
37-
path: ${{ env.book_folder }}
38-
- name: Checkout Converter
39-
uses: actions/checkout@v6
34+
- name: Download book artifact
35+
uses: actions/download-artifact@v8
4036
with:
41-
repository: originlab/DocGHPagesConverter
42-
submodules: recursive
43-
path: converter
44-
- uses: actions/setup-dotnet@v5
45-
with:
46-
dotnet-version: '10.x'
47-
#- run: ls -l -R
48-
- name: Run Converter
49-
run: dotnet run --project converter/generator/generator.csproj -- ${{ env.book_folder }}
37+
name: book
38+
path: _site
5039
- name: Setup Pages
5140
uses: actions/configure-pages@v6
52-
- name: Upload artifact
41+
- name: Upload pages artifact
5342
uses: actions/upload-pages-artifact@v5
54-
with:
55-
path: ${{ env.book_folder }}/out
5643
- name: Deploy to GitHub Pages
5744
id: deployment
5845
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)