mirror of
https://github.com/Xevion/factorio-achievements-fixer.git
synced 2025-12-06 01:14:57 -06:00
43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Build
|
|
|
|
env:
|
|
SLN_PATH: factorio-achievements-fixer/
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths-ignore:
|
|
- "README.md"
|
|
- "LICENSE"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Dotnet
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Install Application Dependencies
|
|
run: dotnet restore ${{ env.SLN_PATH }}
|
|
|
|
- name: Build Application
|
|
run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore
|
|
|
|
- name: Extract Version
|
|
id: extract_version
|
|
run: |
|
|
version=$(grep -oP '(?<=\[assembly: AssemblyVersion\(")[^"]+' ${{ env.SLN_PATH }}/AssemblyInfo.cs)
|
|
echo "VERSION=$version" >> $GITHUB_ENV
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: factorio-achievements-fixer-$VERSION
|
|
path: ${{ env.SLN_PATH }}/bin/Release/net8.0-windows/
|