Skip to content

Commit f3a0b21

Browse files
committed
fix: deploy.yml 추가
1 parent 2cc6f82 commit f3a0b21

File tree

2 files changed

+54
-38
lines changed

2 files changed

+54
-38
lines changed

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: 'main'
6+
7+
jobs:
8+
build_site:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v3
16+
with:
17+
version: 8
18+
19+
- name: Install Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
cache: pnpm
24+
25+
- name: Install dependencies
26+
run: pnpm install
27+
28+
- name: build
29+
env:
30+
BASE_PATH: '/${{ github.event.repository.name }}'
31+
run: pnpm build
32+
33+
- name: Upload Artifacts
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: 'build'
37+
38+
deploy:
39+
needs: build_site
40+
runs-on: ubuntu-latest
41+
42+
permissions:
43+
pages: write
44+
id-token: write
45+
46+
environment:
47+
name: github-pages
48+
url: ${{ steps.deployment.outputs.page_url }}
49+
50+
steps:
51+
- name: Deploy
52+
id: deployment
53+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1 @@
1-
# sv
2-
3-
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
4-
5-
## Creating a project
6-
7-
If you're seeing this, you've probably already done this step. Congrats!
8-
9-
```sh
10-
# create a new project in the current directory
11-
npx sv create
12-
13-
# create a new project in my-app
14-
npx sv create my-app
15-
```
16-
17-
## Developing
18-
19-
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
20-
21-
```sh
22-
npm run dev
23-
24-
# or start the server and open the app in a new browser tab
25-
npm run dev -- --open
26-
```
27-
28-
## Building
29-
30-
To create a production version of your app:
31-
32-
```sh
33-
npm run build
34-
```
35-
36-
You can preview the production build with `npm run preview`.
37-
38-
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
1+
# https://ospac.github.io

0 commit comments

Comments
 (0)