fix action
This commit is contained in:
parent
8b0de515c6
commit
2b8cef9e93
1 changed files with 11 additions and 4 deletions
15
.github/workflows/astro.yml
vendored
15
.github/workflows/astro.yml
vendored
|
|
@ -31,10 +31,17 @@ jobs:
|
||||||
- name: Build with Astro
|
- name: Build with Astro
|
||||||
run: deno run astro build
|
run: deno run astro build
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Create artifact
|
||||||
uses: actions/upload-pages-artifact@v4
|
run: |
|
||||||
|
tar \
|
||||||
|
--dereference --hard-dereference \
|
||||||
|
-cvf "$RUNNER_TEMP/artifact.tar" \
|
||||||
|
-C ./dist .
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: dist
|
name: github-pages
|
||||||
|
path: ${{ runner.temp }}/artifact.tar
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -46,4 +53,4 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v4.0.5
|
uses: actions/deploy-pages@v4.0.5
|
||||||
Loading…
Add table
Add a link
Reference in a new issue