Skip to content

Commit 2ee24fd

Browse files
committed
ci: add manual dispatch GitHub Actions workflow
- Deploy static files to GitHub Pages - Manual trigger only (workflow_dispatch) - No build step needed (buildless) - Save GitHub Actions minutes - Proper permissions for Pages deployment Usage: 1. Go to Actions tab 2. Select 'Deploy to GitHub Pages' 3. Click 'Run workflow' 4. Deploy manually when ready
1 parent cd53f16 commit 2ee24fd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only
5+
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Pages
27+
uses: actions/configure-pages@v4
28+
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: '.'
33+
34+
- name: Deploy to GitHub Pages
35+
id: deployment
36+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)