Skip to content

Updated version to 2.0.1 #17

Updated version to 2.0.1

Updated version to 2.0.1 #17

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build Project and Publish
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v7
with:
fetch-depth: 0
submodules: 'recursive'
- name: "Setup Library SDKs & Components"
uses: X-Hax/SA3D.ProjectConfigurations/.github/actions/setup-sdks-components@main
- name: Build
run: dotnet build -c Release ./src
- name: NuGet login
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGET_USER }}
- name: "Upload Packages"
uses: X-Hax/SA3D.ProjectConfigurations/.github/actions/upload-packages@main
with:
nuget-key: ${{ steps.login.outputs.NUGET_API_KEY }}
is-release: ${{ startsWith(github.ref, 'refs/tags/') }}
release-tag: ${{ github.ref_name }}