-
Notifications
You must be signed in to change notification settings - Fork 7
63 lines (53 loc) · 1.67 KB
/
Copy pathrelease.yaml
File metadata and controls
63 lines (53 loc) · 1.67 KB
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
54
55
56
57
58
59
60
61
62
63
name: Build and Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-b*"
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependencies
run: bun install
- name: Sync Versions
run: |
bun run scripts/bump-version.ts ${{ github.ref_name }}
- name: Commit Updated Versions
continue-on-error: true
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore: update versions to ${{ github.ref_name }}"
git push origin HEAD:main
- name: Run Build
run: bun run build:force
- name: Package Assets
run: |
cd dist
zip -r ../fxmanager-linux.zip fxmanager-linux assets/
zip -r ../fxmanager-windows.zip fxmanager-windows.exe assets/
zip -r ../fxmanager-resource.zip fxManager/
cd ..
- name: Create Release
uses: marvinpinto/action-automatic-releases@v1.2.1
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: "${{ steps.get_vars.outputs.VERSION }}"
prerelease: ${{ contains(github.ref_name, '-b') }}
files: |
fxmanager-linux.zip
fxmanager-windows.zip
fxmanager-resource.zip