Skip to content

Refactor build scripts to allow identical local and gha build #230

Refactor build scripts to allow identical local and gha build

Refactor build scripts to allow identical local and gha build #230

Workflow file for this run

name: build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.actor != 'bgforge-hive' && github.actor != 'github-actions[bot]'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: ShellCheck
uses: ludeeus/action-shellcheck@master
- name: Build and package
run: ./extra/build.sh
- name: Upload artifacts - main zip
uses: actions/upload-artifact@v4
if: "!startsWith(github.ref, 'refs/tags/')"
with:
name: fo2tweaks.zip
path: fo2tweaks*.zip
if-no-files-found: error
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
fo2tweaks*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}