Skip to content

Merge pull request #42 from Singularia/master #117

Merge pull request #42 from Singularia/master

Merge pull request #42 from Singularia/master #117

Workflow file for this run

name: Build
on:
pull_request:
branches: [ master, main ]
push:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-latest
env:
USE_STUBBED_LIBS: 1
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Output Short Sha Commit
run: |
export SHORT_SHA=$(git rev-parse --short ${{ github.sha }})
echo "RELEASE_VERSION=${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-${SHORT_SHA}" >> "$GITHUB_ENV"
shell: bash
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Grant execute permissions for build script
run: chmod +x build.sh
- name: Build
run: ./build.sh --configuration=Release --target=BuildThunderstore
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: input-utils
path: LethalCompanyInputUtils/bin/Release/netstandard2.1/upload/
retention-days: 30