-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1014 Bytes
/
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
name: 🚀 Release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
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: |
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: 🔨 Compile binary for supported platforms
run: |
task build
task compress
- name: 🚀 Release a new version
run: bun release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.DEVOPS_USER_TOKEN }}