-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.12 KB
/
release.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
name: 🚀 Release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
container:
image: oven/bun:slim
steps:
- name: 💻 Checkout current pull-request revision code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.DEVOPS_USER_TOKEN }}
# - name: 🟢 Configure Bun on runner
# uses: oven-sh/setup-bun@v1
# with:
# bun-version: latest
- name: 🔵 Install Task
uses: arduino/setup-task@v2
- name: 💼 Configure Git user
run: |
apt install git
git config user.name "gbh-devops-bot"
git config user.email "[email protected]"
- name: 📦 Install package dependencies using lockfile
run: bun install --frozen-lockfile
- name: 🔨 Run build
run: bun run build
- name: 🔨 Compile binary for supported platforms
run: |
task compile
task compress
- name: 🚀 Release a new version
run: bun release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.DEVOPS_USER_TOKEN }}