Skip to content

chore: bump version to 1.0.2 #17

chore: bump version to 1.0.2

chore: bump version to 1.0.2 #17

Workflow file for this run

name: Build
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Need to fetch all for proper history
- name: Collect build info
id: info
run: |
# Get short SHA
SHA_SHORT=$(git rev-parse --short HEAD)
echo "sha_short=$SHA_SHORT" >> $GITHUB_OUTPUT
# Extract version from csproj
VERSION=$(grep -oP '(?<=<Version>)[^<]+' BepisResoniteWrapper/BepisResoniteWrapper.csproj)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version found: $VERSION"
- uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: Build
run: |
dotnet build -c Release
dotnet pack -c Release --no-build -o ./bin/dist
# Copy the built DLL to dist folder
cp ./BepisResoniteWrapper/bin/Release/BepisResoniteWrapper.dll ./bin/dist/
- name: Create Thunderstore Package
run: |
dotnet tool restore
dotnet tcli build --package-version ${{ steps.info.outputs.version }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: BepisResoniteWrapper-${{ steps.info.outputs.version }}-${{ steps.info.outputs.sha_short }}
path: |
./bin/dist/*.nupkg
./bin/dist/*.dll
./build/*.zip