| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,9 +4,15 @@ on: | |||
| 4 | 4 | push: | |
| 5 | 5 | branches: | |
| 6 | 6 | - '*' | |
| 7 | + tags-ignore: | ||
| 8 | + - '*' | ||
| 7 | 9 | pull_request: | |
| 8 | 10 | workflow_dispatch: | |
| 9 | 11 | ||
| 12 | + concurrency: | ||
| 13 | + group: compile-${{ github.ref }} | ||
| 14 | + cancel-in-progress: true | ||
| 15 | + | ||
| 10 | 16 | jobs: | |
| 11 | 17 | windows: | |
| 12 | 18 | name: windows-2025 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,10 +7,14 @@ on: | |||
| 7 | 7 | workflow_dispatch: | |
| 8 | 8 | inputs: | |
| 9 | 9 | version: | |
| 10 | - description: "Release version (optional)" | ||
| 10 | + description: "Release version (e.g. 3.1.0, 3.1.0-beta.1)" | ||
| 11 | 11 | required: false | |
| 12 | 12 | type: string | |
| 13 | 13 | ||
| 14 | + concurrency: | ||
| 15 | + group: publish-release | ||
| 16 | + cancel-in-progress: false | ||
| 17 | + | ||
| 14 | 18 | jobs: | |
| 15 | 19 | windows: | |
| 16 | 20 | name: windows-2025 | |
@@ -53,5 +57,16 @@ jobs: | |||
| 53 | 57 | working-directory: "build" | |
| 54 | 58 | env: | |
| 55 | 59 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| 56 | - DOTNET_ENVIRONMENT: ${{ (github.ref_name == 'main' || github.ref_type == 'tag') && 'Production' || 'Development' }} | ||
| 57 | - Build__Version: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || github.ref_name }} | ||
| 60 | + DOTNET_ENVIRONMENT: Production | ||
| 61 | + Build__Version: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || github.ref_name }} | ||
| 62 | + | ||
| 63 | + - name: Fast-forward develop to include release tag | ||
| 64 | + if: success() | ||
| 65 | + shell: bash | ||
| 66 | + run: | | ||
| 67 | + set -e | ||
| 68 | + TAG="${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version || github.ref_name }}" | ||
| 69 | + git fetch origin develop | ||
| 70 | + git checkout develop | ||
| 71 | + git merge --no-edit "tags/$TAG" || true | ||
| 72 | + git push origin develop || echo "::warning::Could not push develop merge. Manual merge needed." | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,6 +13,7 @@ namespace Build.Modules; | |||
| 13 | 13 | /// The csproj DeployDevToolsDaemon target handles kill + copy to bundle Contents. | |
| 14 | 14 | /// </summary> | |
| 15 | 15 | [DependsOn<ResolveVersioningModule>] | |
| 16 | + [DependsOn<CompileProjectModule>] | ||
| 16 | 17 | [DependsOn<CleanProjectModule>(Optional = true)] | |
| 17 | 18 | [UsedImplicitly] | |
| 18 | 19 | public sealed class PublishDaemonModule : Module<string> | |
| Back | FazBrowse Home | New Git URL |
0 commit comments