-
-
Notifications
You must be signed in to change notification settings - Fork 207
55 lines (50 loc) · 1.83 KB
/
Copy pathdeploy.yml
File metadata and controls
55 lines (50 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Preserve the wheel package index
shell: bash
run: |
./.github/scripts/preserve_wheel_indexes.sh docs/public
if [[ ! -f docs/public/nightly/aphrodite-engine/index.html ]]; then
mkdir -p docs/public/nightly/aphrodite-engine
printf '%s\n' '<!doctype html><html><body></body></html>' \
> docs/public/nightly/aphrodite-engine/index.html
fi
mkdir -p docs/public/whl docs/public/simple/aphrodite-engine
cp \
docs/public/nightly/aphrodite-engine/index.html \
docs/public/whl/index.html
cp \
docs/public/nightly/aphrodite-engine/index.html \
docs/public/simple/aphrodite-engine/index.html
- name: Install, build, and upload your site
uses: withastro/action@v3
with:
path: ./docs # The root location of your Astro project inside the repository. (optional)
node-version: 22 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
package-manager: pnpm@9.15.8 # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4