-
Notifications
You must be signed in to change notification settings - Fork 132
44 lines (39 loc) · 1.2 KB
/
deploy.yml
File metadata and controls
44 lines (39 loc) · 1.2 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
name: Deploy to GitHub Pages
on:
# Trigger the workflow every time you push to the `main` or `master` branch
# but only if changes occur in the docs/ folder.
push:
branches: [master, main]
paths:
- "docs/**"
- "changelog.md"
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
jobs:
build:
runs-on: ubuntu-24.04-arm
permissions:
contents: read
steps:
- name: Checkout your repository using git
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install, build, and upload your site
uses: withastro/action@b7d53628f8b666036b0238aadb0b984a2a489f26 # v6.1.1
with:
path: ./docs
deploy:
needs: build
runs-on: ubuntu-24.04-arm
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0