Skip to content

Commit 9dd0e70

Browse files
committed
added deploy yml
1 parent 53be3d6 commit 9dd0e70

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

Diff for: .github/workflows/deploy.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build-and-deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Code
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 20
24+
25+
- name: Install Dependencies
26+
run: npm ci
27+
28+
- name: Build Project
29+
run: npm run build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: actions/upload-pages-artifact@v1
33+
34+
deploy:
35+
needs: build-and-deploy
36+
runs-on: ubuntu-latest
37+
permissions:
38+
pages: write
39+
id-token: write
40+
steps:
41+
- name: Deploy
42+
uses: actions/deploy-pages@v1

Diff for: astro.config.mjs

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import tailwind from '@astrojs/tailwind';
77

88
// https://astro.build/config
99
export default defineConfig({
10+
site: 'https://niposch.github.io',
11+
output: 'static',
1012
integrations: [
1113
vue(),
1214
tailwind({

0 commit comments

Comments
 (0)