chore(ci): build

Signed-off-by: Neko Ayaka <neko@ayaka.moe>
This commit is contained in:
Neko Ayaka
2024-12-03 13:14:57 +08:00
parent f4f1bc5920
commit ad44967a3d
3 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -71,6 +71,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: docs-${{ matrix.os }}-build
path: docs/.vitepress/dist
name: site-${{ matrix.os }}-build
path: dist
overwrite: true
@@ -42,8 +42,8 @@ jobs:
with:
workflow_conclusion: success
run_id: ${{ github.event.workflow_run.id }}
name: docs-ubuntu-latest-build
path: docs-ubuntu-latest-build
name: site-ubuntu-latest-build
path: site-ubuntu-latest-build
allow_forks: true
- name: Install Node.js 22.x
@@ -77,7 +77,7 @@ jobs:
id: netlify-ubuntu-latest
timeout-minutes: 10
run: |
UBUNTU_NETLIFY_JSON_OUTPUT=$(netlify deploy --dir docs-ubuntu-latest-build --json)
UBUNTU_NETLIFY_JSON_OUTPUT=$(netlify deploy --dir site-ubuntu-latest-build --json)
echo $UBUNTU_NETLIFY_JSON_OUTPUT
echo "UBUNTU_NETLIFY_JSON_OUTPUT=$(echo $UBUNTU_NETLIFY_JSON_OUTPUT)" >> $GITHUB_ENV
@@ -61,9 +61,8 @@ jobs:
- name: Push to Netlify
timeout-minutes: 10
working-directory: docs/
run: |
netlify deploy --dir 'docs/.vitepress/dist' --prod --debug
netlify deploy --dir 'dist' --prod --debug
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}