File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 release :
1010 runs-on : ubuntu-latest
11+ env :
12+ GOEXPERIMENT : jsonv2
1113
1214 steps :
1315 - name : Setup Go
1416 uses : actions/setup-go@v5
1517 with :
16- go-version : 1.26rc2
18+ go-version : ' 1.26.0-rc.2 '
1719
1820 - name : Checkout code
1921 uses : actions/checkout@v4
2022
21- - name : Generate OpenAPI specifications
22- run : ./bin/swag init -g cmd/api/main.go -o .swagger -ot yaml --v3.1
23+ - name : go mod package cache
24+ uses : actions/cache@v4
25+ with :
26+ path : |
27+ ~/.cache/go-build
28+ ~/go/pkg/mod
29+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
30+ restore-keys : |
31+ ${{ runner.os }}-go-
2332
2433 - name : Upload OpenAPI specifications to release
2534 uses : svenstaro/upload-release-action@v2
2635 with :
2736 repo_token : ${{ github.token }}
28- file : .swagger/swagger.yaml
29- asset_name : swagger- myapp-${{ github.ref_name }}.yaml
37+ file : openapi-v3.yml
38+ asset_name : myapp-${{ github.ref_name }}.openapi-v3 .yaml
3039 tag : ${{ github.ref }}
3140
3241 - name : Setup Docker Buildx
5564 tags : |
5665 ghcr.io/learning-cloud-native-go/myapp:latest
5766 ghcr.io/learning-cloud-native-go/myapp:${{ github.ref_name }}
58- labels : ${{ steps.meta.outputs.labels }}
67+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments