From abeb44c4b616e01602b2f100d1c4e4f533754e8d Mon Sep 17 00:00:00 2001 From: Maximus7474 Date: Wed, 8 Jul 2026 12:35:51 +0200 Subject: [PATCH] ci(release): changes of the workflow -> rename the "resource" folder in the archive to "fxManager" (one less step) -> use "marvinpinto/action-automatic-releases" instead of softprops/action-gh-release --- .github/workflows/release.yaml | 24 ++++++++++++------------ scripts/build.ts | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e43b2abe..11ef2af6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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: @@ -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 @@ -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 @@ -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 }} diff --git a/scripts/build.ts b/scripts/build.ts index 24ee5be1..d7a254c6 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -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 = {