mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
GITHUB: Update format created by "build artifacts" workflows (#2470)
* Change filenames and structure of build artifacts, for compatibility with steam version updating Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
This commit is contained in:
39
.github/workflows/build-artifacts.yml
vendored
39
.github/workflows/build-artifacts.yml
vendored
@@ -26,15 +26,19 @@ jobs:
|
||||
- name: Build the Electron app
|
||||
shell: bash
|
||||
run: npm run electron-win
|
||||
- name: Zip
|
||||
shell: bash
|
||||
run: cd .build; for i in bitburner-*; do 7z a "$i.zip" "$i"; done; cd ../;
|
||||
- name: Upload artifact
|
||||
- name: Upload x64 artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-artifacts-win
|
||||
name: bitburner-win32-x64
|
||||
include-hidden-files: true
|
||||
path: .build/*.zip
|
||||
path: .build/bitburner-win32-x64/*
|
||||
if-no-files-found: error
|
||||
- name: Upload arm64 artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: bitburner-win32-arm64
|
||||
include-hidden-files: true
|
||||
path: .build/bitburner-win32-arm64/*
|
||||
if-no-files-found: error
|
||||
|
||||
build-linux:
|
||||
@@ -53,14 +57,19 @@ jobs:
|
||||
run: npm run build
|
||||
- name: Build the Electron app
|
||||
run: npm run electron-linux
|
||||
- name: Zip
|
||||
run: cd .build; for i in bitburner-*; do zip -r "$i.zip" "$i"; done; cd ../;
|
||||
- name: Upload artifact
|
||||
- name: Upload x64 artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-artifacts-linux
|
||||
name: bitburner-linux-x64
|
||||
include-hidden-files: true
|
||||
path: .build/*.zip
|
||||
path: .build/bitburner-linux-x64/*
|
||||
if-no-files-found: error
|
||||
- name: Upload arm64 artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: bitburner-linux-arm64
|
||||
include-hidden-files: true
|
||||
path: .build/bitburner-linux-arm64/*
|
||||
if-no-files-found: error
|
||||
|
||||
build-mac:
|
||||
@@ -79,12 +88,10 @@ jobs:
|
||||
run: npm run build
|
||||
- name: Build the Electron app
|
||||
run: npm run electron-mac
|
||||
- name: Zip
|
||||
run: cd .build; for i in bitburner-*; do zip -r "$i.zip" "$i"; done; cd ../;
|
||||
- name: Upload artifact
|
||||
- name: Upload darwin-universal artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: build-artifacts-mac
|
||||
name: bitburner-darwin-universal
|
||||
include-hidden-files: true
|
||||
path: .build/*.zip
|
||||
path: .build/bitburner-darwin-universal/*
|
||||
if-no-files-found: error
|
||||
|
||||
16
.github/workflows/build-upload-artifacts.yml
vendored
16
.github/workflows/build-upload-artifacts.yml
vendored
@@ -20,19 +20,19 @@ jobs:
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js 24
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
cache: "npm"
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v7
|
||||
with:
|
||||
path: .build
|
||||
pattern: build-artifacts-*
|
||||
merge-multiple: true
|
||||
pattern: bitburner-*
|
||||
merge-multiple: false
|
||||
- name: List files
|
||||
run: ls -la .build
|
||||
- name: Zip
|
||||
run: cd .build; for i in bitburner-*; do cd "$i"; zip -r "../$i.zip" *; cd ../; done; cd ../;
|
||||
- name: List files
|
||||
run: |
|
||||
ls -la .build
|
||||
- name: Upload to release
|
||||
env:
|
||||
GH_REF_NAME: ${{ github.ref_name }}
|
||||
|
||||
Reference in New Issue
Block a user