name: Build Plugin on: push: branches: - nightly tags: - 'v*' paths: - '**/*.cs' - '**/*.csproj' - '**/*.yml' - '**/*.yaml' pull_request: branches: - nightly paths: - '**/*.cs' - '**/*.csproj' - '**/*.yml' - '**/*.yaml' workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v4 - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: '6.0.x' - name: Restore Dependencies run: dotnet restore - name: Build Project (Development) run: dotnet build --configuration Development --no-restore - name: Upload Build Artifact uses: actions/upload-artifact@v4 with: name: AUModdedRegions path: bin/Development/net6.0/AUModdedRegions.dll - name: Upload Release Asset if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: files: bin/Development/net6.0/AUModdedRegions.dll env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}