Skip to content

Commit 618a51f

Browse files
authored
Update pages.yml
1 parent 15c90bc commit 618a51f

1 file changed

Lines changed: 8 additions & 26 deletions

File tree

.github/workflows/pages.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Deploy Docs to GitHub Pages
1+
name: Deploy DeepDIP to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
workflow_dispatch:
77

88
permissions:
@@ -11,34 +11,16 @@ permissions:
1111
id-token: write
1212

1313
jobs:
14-
build:
14+
deploy:
1515
runs-on: ubuntu-latest
16-
outputs:
17-
artifact-path: ${{ steps.build.outputs.artifact-path }}
1816
steps:
19-
- uses: actions/checkout@v4
20-
- name: Prepare site (optional)
21-
run: |
22-
# For a static site without build step, ensure public/ exists
23-
mkdir -p public
24-
echo "<!DOCTYPE html><html><body><h1>DeepDIP Docs Coming Soon</h1></body></html>" > public/index.html
25-
- name: Upload Pages Artifact
26-
id: build
17+
- name: Checkout source
18+
uses: actions/checkout@v4
19+
20+
- name: Upload static content
2721
uses: actions/upload-pages-artifact@v3
2822
with:
29-
path: public
23+
path: ./public
3024

31-
deploy:
32-
runs-on: ubuntu-latest
33-
needs: build
34-
permissions:
35-
contents: read
36-
pages: write
37-
id-token: write
38-
environment:
39-
name: github-pages
40-
url: ${{ steps.deployment.outputs.page_url }}
41-
steps:
4225
- name: Deploy to GitHub Pages
43-
id: deployment
4426
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)