-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1023 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 }}