Skip to content

Commit 126cdc0

Browse files
authored
Update deploy.yml
1 parent 87ececc commit 126cdc0

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,32 @@ jobs:
3939
with:
4040
dotnet-version: '10.x'
4141
- run: ls -l
42-
- run: dotnet run --project converter/generator/generator.csproj -- index
43-
- name: Setup Pages
44-
uses: actions/configure-pages@v6
42+
- name: Run Converter
43+
run: dotnet run --project converter/generator/generator.csproj -- index
4544
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v5
45+
uses: actions/upload-artifact@v7
4746
with:
47+
name: index
4848
path: index/out
4949

5050
deploy:
51+
needs: build_index
5152
environment:
5253
name: github-pages
5354
url: ${{ steps.deployment.outputs.page_url }}
5455
runs-on: ubuntu-latest
5556
steps:
57+
- name: Chekout
58+
uses: actions/checkout@v6
59+
- name: Download artifact
60+
uses: actions/download-artifact@v8
61+
with:
62+
name: index
63+
- run: ls -l
64+
- name: Setup Pages
65+
uses: actions/configure-pages@v6
66+
- name: Upload pages artifact
67+
uses: actions/upload-pages-artifact@v5
5668
- name: Deploy to GitHub Pages
5769
id: deployment
5870
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)