Files
se-launcher/.github/workflows/build.yml
zznty dc63671a48
All checks were successful
Build / Build Launcher (push) Successful in 5m25s
update deps
2024-03-04 17:21:47 +07:00

51 lines
1.3 KiB
YAML

name: Build
on:
push:
branches: [master]
jobs:
build:
name: Build Launcher
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- run: dotnet restore CringeLauncher/CringeLauncher.csproj --locked-mode
name: Restore Project
- name: Git Version
id: version
uses: paulhatch/semantic-version@v5.3.0
with:
tag_prefix: ''
major_pattern: 'breaking:'
minor_pattern: 'feature:'
- run: dotnet publish -c Release -o ./pub CringeLauncher/CringeLauncher.csproj --no-restore -p:Version="${{ steps.version.outputs.version }}" -r win-x64 --no-self-contained
id: publish
name: Build Project
- run: rm ./pub/CringeLauncher.deps.json
- run: zip -qq -r ../pub.zip ./
working-directory: ./pub
name: Zip Results
- name: Create Release
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
tag_name: ${{ steps.version.outputs.version }}
name: Launcher Release ${{ steps.version.outputs.version }}
files: |-
./pub.zip