Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build and Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-b*'
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-b*"

jobs:
build-and-release:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 0

- name: Setup Bun
uses: oven-sh/setup-bun@v1
Expand All @@ -31,13 +31,13 @@ jobs:
bun run scripts/bump-version.ts ${{ github.ref_name }}

- name: Commit Updated Versions
continue-on-error: true
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
git push origin HEAD:main

- name: Run Build
run: bun run build:force
Expand All @@ -47,17 +47,17 @@ jobs:
cd dist
zip -r ../fxmanager-linux.zip fxmanager-linux assets/
zip -r ../fxmanager-windows.zip fxmanager-windows.exe assets/
zip -r ../fxmanager-resource.zip resource/
zip -r ../fxmanager-resource.zip fxManager/
cd ..

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
- 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
draft: false
prerelease: ${{ contains(github.ref_name, '-b') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const targetArg =
const ROOT_DIR = path.join(import.meta.dir, '..');
const DIST_DIR = path.join(ROOT_DIR, 'dist');
const ASSETS_DIR = path.join(DIST_DIR, 'assets');
const RESOURCE_DIR = path.join(DIST_DIR, 'resource');
const RESOURCE_DIR = path.join(DIST_DIR, 'fxManager');
const CORE_ENTRY = join(ROOT_DIR, 'apps/core/src/index.ts');

const targets: Record<string, Build.CompileTarget> = {
Expand Down
Loading