diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..64b0657 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,49 @@ +name: Deploy + +on: + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "8.0.x" + + - name: Install GitVersion + uses: gittools/actions/gitversion/setup@v3.0.0 + with: + versionSpec: "5.x" + + - name: Determine Version + id: gitversion + uses: gittools/actions/gitversion/execute@v3.0.0 + with: + useConfigFile: true + + - name: Create Release + uses: ncipollo/release-action@v1.14.0 + id: create_release + with: + allowUpdates: true + draft: false + makeLatest: true + tag: v${{ env.fullSemVer }} + name: Release v${{ env.fullSemVer }} + generateReleaseNotes: true + body: Release ${{ env.fullSemVer }} of ${{ github.repository }} diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 0000000..c311488 --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1 @@ +mode: Mainline \ No newline at end of file