-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (49 loc) · 1.35 KB
/
deploy.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
49
50
51
52
53
# SPDX-FileCopyrightText: 2024 The Forkbomb Company
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Deploy and Release
on:
push:
branches:
- main
concurrency:
group: "pages"
cancel-in-progress: false
permissions:
pages: write
id-token: write
contents: write
issues: write
pull-requests: write
attestations: write
jobs:
deploy:
environment:
name: Demo
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- run: bun install
- run: bun run build
- run: cp dist/index.html pqspread.html
- uses: actions/upload-pages-artifact@v3
with:
path: dist
- uses: actions/attest-build-provenance@v1
with:
subject-path: pqspread.html
- uses: actions/deploy-pages@v4
id: deployment
- run: bun add -g semantic-release
- run: bun add -D @semantic-release/changelog @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/git @semantic-release/github
- uses: actions/setup-node@v3
with:
node-version: latest
- run: semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}