Skip to content

Commit 7be8ba1

Browse files
committed
Added release workflow
1 parent b841575 commit 7be8ba1

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.github/workflows/release.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: release
2+
on:
3+
release:
4+
types:
5+
- created
6+
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
# Allow one concurrent deployment
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
build_and_deploy_pages:
23+
runs-on: ubuntu-latest
24+
environment:
25+
name: "github-pages"
26+
url: ${{ steps.deployment.outputs.page_url }}
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
32+
- name: Setup Pages
33+
uses: actions/configure-pages@v2
34+
35+
- uses: oven-sh/setup-bun@v1
36+
with:
37+
bun-version: latest
38+
39+
- name: Use cached node_modules
40+
uses: actions/cache@v3
41+
with:
42+
path: node_modules
43+
key: nodeModules-18-${{ hashFiles('**/package-lock.json') }}
44+
45+
- name: Install dependencies
46+
run: bun install
47+
env:
48+
CI: true
49+
50+
- name: Build project
51+
run: bun scripts/build.ts
52+
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v1
55+
with:
56+
# Upload entire repository
57+
path: "dist"
58+
59+
- name: Deploy to GitHub Pages
60+
id: deployment
61+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)