@@ -3,7 +3,6 @@ name: Tyger
33on :
44 push :
55 branches : [main]
6- tags : ["v*.*.*"]
76 pull_request : # all branches
87 workflow_dispatch :
98
@@ -64,12 +63,12 @@ jobs:
6463 with :
6564 fetch-depth : 0
6665
67- - uses : actions/setup-go@v4
66+ - uses : actions/setup-go@v6
6867 with :
6968 go-version-file : cli/go.mod
7069 cache-dependency-path : cli/go.sum
7170
72- - uses : actions/setup-dotnet@v3
71+ - uses : actions/setup-dotnet@v5
7372 with :
7473 global-json-file : server/global.json
7574
@@ -351,7 +350,7 @@ jobs:
351350 run : |
352351 make login-acr
353352
354- - uses : actions/setup-go@v4
353+ - uses : actions/setup-go@v6
355354 with :
356355 go-version-file : cli/go.mod
357356 cache-dependency-path : cli/go.sum
@@ -382,7 +381,7 @@ jobs:
382381 - name : Log in to Azure
383382 uses : ./.github/actions/login-azure
384383
385- - uses : actions/setup-go@v4
384+ - uses : actions/setup-go@v6
386385 with :
387386 go-version-file : cli/go.mod
388387 cache-dependency-path : cli/go.sum
@@ -425,7 +424,7 @@ jobs:
425424 - name : Log in to Azure
426425 uses : ./.github/actions/login-azure
427426
428- - uses : actions/setup-go@v4
427+ - uses : actions/setup-go@v6
429428 with :
430429 go-version-file : cli/go.mod
431430 cache-dependency-path : cli/go.sum
@@ -465,7 +464,7 @@ jobs:
465464 run : |
466465 make login-acr
467466
468- - uses : actions/setup-go@v4
467+ - uses : actions/setup-go@v6
469468 with :
470469 go-version-file : cli/go.mod
471470 cache-dependency-path : cli/go.sum
@@ -509,7 +508,7 @@ jobs:
509508 with :
510509 fetch-depth : 0
511510
512- - uses : actions/setup-go@v4
511+ - uses : actions/setup-go@v6
513512 with :
514513 go-version-file : cli/go.mod
515514 cache-dependency-path : cli/go.sum
@@ -660,12 +659,12 @@ jobs:
660659 with :
661660 fetch-depth : 0
662661
663- - uses : actions/setup-go@v4
662+ - uses : actions/setup-go@v6
664663 with :
665664 go-version-file : cli/go.mod
666665 cache-dependency-path : cli/go.sum
667666
668- - uses : actions/setup-dotnet@v3
667+ - uses : actions/setup-dotnet@v5
669668 with :
670669 global-json-file : server/global.json
671670
@@ -696,13 +695,13 @@ jobs:
696695 with :
697696 fetch-depth : 0
698697
699- - uses : actions/setup-go@v4
698+ - uses : actions/setup-go@v6
700699 if : matrix.language == 'go'
701700 with :
702701 go-version-file : cli/go.mod
703702 cache-dependency-path : cli/go.sum
704703
705- - uses : actions/setup-dotnet@v3
704+ - uses : actions/setup-dotnet@v5
706705 if : matrix.language == 'csharp'
707706 with :
708707 global-json-file : server/global.json
@@ -771,50 +770,3 @@ jobs:
771770 - name : Deploy to GitHub Pages
772771 id : deployment
773772 uses : actions/deploy-pages@v4
774-
775- release :
776- if : startsWith(github.ref, 'refs/tags/')
777- needs :
778- - unit-tests-and-format
779- - integration-tests
780- - get-config
781- - verify-docker
782- - windows-smoke-tests
783- environment :
784- name : publish-container-images
785- env :
786- DEVELOPER_CONFIG_BASE64 : ${{ needs.get-config.outputs.DEVELOPER_CONFIG_BASE64 }}
787- permissions :
788- contents : write
789- runs-on : ubuntu-latest
790- steps :
791- - uses : actions/checkout@v6
792- with :
793- fetch-depth : 0
794-
795- - uses : actions/setup-go@v4
796- with :
797- go-version-file : cli/go.mod
798- cache-dependency-path : cli/go.sum
799-
800- - name : get container registry
801- run : |
802- set -euo pipefail
803- official_pull_container_registry=$(echo "$DEVELOPER_CONFIG_BASE64" | base64 -d | jq -r '.officialPullContainerRegistry.fqdn')
804- echo "GORELEASER_CONTAINER_REGISTRY=$(echo $official_pull_container_registry)" >> $GITHUB_ENV
805- official_pull_container_registry_directory=$(echo "$DEVELOPER_CONFIG_BASE64" | base64 -d | jq -r '.officialPullContainerRegistry.directory // ""')
806- echo "GORELEASER_CONTAINER_REGISTRY_DIRECTORY=$(echo $official_pull_container_registry_directory)" >> $GITHUB_ENV
807-
808- - name : test image published
809- run : |
810- set -euo pipefail
811- docker pull "${GORELEASER_CONTAINER_REGISTRY}${GORELEASER_CONTAINER_REGISTRY_DIRECTORY}/tyger-server:$(git describe --tags)"
812-
813- - name : Run GoReleaser
814- uses : goreleaser/goreleaser-action@v5
815- env :
816- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
817- with :
818- version : v1.21.2
819- workdir : cli
820- args : release --clean
0 commit comments