Skip to content

Commit 8cd768f

Browse files
committed
Fix syntax for deploy take 2
1 parent 9d1ab07 commit 8cd768f

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

.github/workflows/build-guidelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ jobs:
5757
exit 1
5858
fi
5959
60-
- name: Archive build logs
60+
- name: Archive build artifacts
6161
uses: actions/upload-artifact@v4
6262
if: always()
6363
with:
64-
name: build-logs
64+
name: build-artifacts
6565
path: build
6666
retention-days: 7
6767
compression-level: 6 # Default compression level for a good balance of speed and size

.github/workflows/deploy.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,24 @@ on:
66
- "*.*.*"
77

88
jobs:
9-
deploy:
9+
build:
10+
uses: ./.github/workflows/build-guidelines.yml
1011

11-
name: Deploy
12+
deploy:
13+
needs: build
1214
runs-on: ubuntu-latest
1315
steps:
14-
# Call the main build workflow
15-
- uses: ./.github/workflows/build-guidelines.yml
16-
# If your main workflow is in a different file, adjust the path accordingly
17-
- uses: peaceiris/actions-gh-pages@v4
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Download build artifacts
20+
uses: actions/download-artifact@v4
21+
with:
22+
name: build-artifacts
23+
path: build
24+
25+
- name: Deploy to GitHub Pages
26+
uses: peaceiris/actions-gh-pages@v4
1827
with:
1928
github_token: ${{ secrets.GITHUB_TOKEN }}
2029
publish_dir: ./build/html

0 commit comments

Comments
 (0)