-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (38 loc) · 1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Test, build and release
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: ".bun-version"
- name: Install dependencies
run: bun install
- name: Check types
run: bun run check-types
- name: Lint code
run: bun run lint
- name: Build the project
run: bun run build
- name: Archive dist folder
if: github.ref == 'refs/heads/main' && github.repository != 'fTrestour/katastema'
run: |
tar -czf site.tar.gz -C dist .
zip -r site.zip dist
- name: Release
if: github.ref == 'refs/heads/main' && github.repository != 'fTrestour/katastema'
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ github.run_id }}"
files: |
site.tar.gz
site.zip