Skip to content

Commit 60c5ef3

Browse files
authored
this should deploy as intended (#11)
1 parent 31ffa7e commit 60c5ef3

1 file changed

Lines changed: 38 additions & 13 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,49 @@
1-
name: Deploy
1+
# Simple workflow for deploying static content to GitHub Pages
2+
name: Deploy static content to Pages
23

34
on:
5+
# Runs on pushes targeting the default branch
46
push:
5-
branches: [main]
7+
branches: ["main"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
20+
concurrency:
21+
group: "pages"
22+
cancel-in-progress: false
623

724
jobs:
8-
build-and-deploy:
9-
permissions:
10-
contents: write
25+
# Single deploy job since we're just deploying
26+
deploy:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
1130
runs-on: ubuntu-latest
1231
steps:
13-
- uses: actions/checkout@v4
14-
- uses: oven-sh/setup-bun@v1
32+
- name: Checkout
33+
uses: actions/checkout@v4
34+
- name: Setup Bun
35+
uses: oven-sh/setup-bun@v1
1536
with:
16-
bun-version: latest
37+
bun-version: stable
1738
- run: bun install
1839
- run: bun run build
19-
- name: Deploy to GitHub Pages
20-
uses: peaceiris/actions-gh-pages@v4
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v5
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v3
2144
with:
22-
github_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: ./public
24-
enable_jekyll: false
45+
# Upload public dir
46+
path: './public'
47+
- name: Deploy to GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)