Skip to content

More robust action

More robust action #2

Workflow file for this run

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