diff --git a/.github/workflows/dotnet-pre-release.yml b/.github/workflows/dotnet-pre-release.yml deleted file mode 100644 index 7925e4d5..00000000 --- a/.github/workflows/dotnet-pre-release.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: .NET Pre Release - -on: - push: - branches: - - main - -jobs: - semantic-release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 1 - - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 8.x - - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v4 - with: - semantic_version: 21 - extra_plugins: | - semantic-release-net - branches: | - [ - { - "name": "main", - "prerelease": true - }, - "release" - ] - env: - DEBUG: semantic-release:* - NUGET_API_KEY: ${{ secrets.NUGET_KEY }} - GH_NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/dotnet-release.yml b/.github/workflows/dotnet-release.yml index 7e2184ce..fc910f10 100644 --- a/.github/workflows/dotnet-release.yml +++ b/.github/workflows/dotnet-release.yml @@ -1,7 +1,9 @@ name: .NET Release on: - workflow_dispatch: + push: + branches: + - main jobs: semantic-release: