mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
* Change filenames and structure of build artifacts, for compatibility with steam version updating Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
41 lines
969 B
YAML
41 lines
969 B
YAML
name: Build and upload artifacts
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build artifacts
|
|
uses: ./.github/workflows/build-artifacts.yml
|
|
|
|
upload:
|
|
name: Upload
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
needs: [build]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@v7
|
|
with:
|
|
path: .build
|
|
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 }}
|
|
run: |
|
|
for i in .build/*.zip; do gh release upload "$GH_REF_NAME" "$i" --clobber; done;
|