@@ -11,7 +11,7 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
env :
14
- OPEN_API_GENERATOR_VERSION : ' v7.9 .0'
14
+ OPEN_API_GENERATOR_VERSION : ' v7.10 .0'
15
15
PYTHON_VERSION_DEFAULT : ' 3.12'
16
16
POETRY_VERSION : ' 1.8.1'
17
17
THIS_VERSION : $(echo "${{ github.ref_name }}" | cut -d 'v' -f2)
22
22
runs-on : ubuntu-latest
23
23
strategy :
24
24
matrix :
25
- language : ['python', 'typescript']
25
+ language : ['go', ' python', 'typescript']
26
26
steps :
27
27
- name : Checkout
28
28
# see https://github.com/actions/checkout
@@ -47,63 +47,63 @@ jobs:
47
47
path : out/${{ matrix.language }}
48
48
key : ' ${{ matrix.language }}-${{ github.sha }}'
49
49
50
- # release-go:
51
- # name: Release Go Library
52
- # runs-on: ubuntu-latest
53
- # needs: generate-library-code
50
+ release-go :
51
+ name : Release Go Library
52
+ runs-on : ubuntu-latest
53
+ needs : generate-library-code
54
54
55
- # steps:
56
- # - name: Setup Go
57
- # uses: actions/setup-go@v5
58
- # with:
59
- # go-version: 1.22
60
-
61
- # - name: Checkout Go Library Repository
62
- # uses: actions/checkout@v4
63
- # with:
64
- # repository: sonatype-nexus-community/nexus-repo -api-client-go
65
- # ref: main
66
- # token: ${{ secrets.GO_LIB_GH_ACTION_TOKEN }}
67
- # path: out/go
68
-
69
- # - name: Setup git config
70
- # run: |
71
- # git config --global user.name "GitHub Actions"
72
- # git config --global user.email "<>"
73
-
74
- # - name: Unstage all existing files
75
- # run: git rm -fr --ignore-unmatch *
76
- # working-directory: out/go
77
-
78
- # - name: Get generated code from cache
79
- # uses: actions/cache/restore@v4
80
- # with:
81
- # path: out/go
82
- # key: 'go-${{ github.sha }}'
83
- # fail-on-cache-miss: true
84
- # - name: Validate Checked Out Library
85
- # run: ls -lR ${{ github.workspace }}
55
+ steps :
56
+ - name : Setup Go
57
+ uses : actions/setup-go@v5
58
+ with :
59
+ go-version : 1.22
60
+
61
+ - name : Checkout Go Library Repository
62
+ uses : actions/checkout@v4
63
+ with :
64
+ repository : sonatype-nexus-community/ossindex -api-client-go
65
+ ref : main
66
+ token : ${{ secrets.GO_LIB_GH_ACTION_TOKEN }}
67
+ path : out/go
68
+
69
+ - name : Setup git config
70
+ run : |
71
+ git config --global user.name "GitHub Actions"
72
+ git config --global user.email "<>"
73
+
74
+ - name : Unstage all existing files
75
+ run : git rm -fr --ignore-unmatch *
76
+ working-directory : out/go
77
+
78
+ - name : Get generated code from cache
79
+ uses : actions/cache/restore@v4
80
+ with :
81
+ path : out/go
82
+ key : ' go-${{ github.sha }}'
83
+ fail-on-cache-miss : true
84
+ - name : Validate Checked Out Library
85
+ run : ls -lR ${{ github.workspace }}
86
86
87
- # - name: Build Go API Client
88
- # run: go build -v ./
89
- # working-directory: out/go
90
-
91
- # - name: Install test dependencies & run generated tests
92
- # run: |
93
- # go get github.com/stretchr/testify/assert
94
- # go test -v ./test/
95
- # working-directory: out/go
96
-
97
- # - name: Commit, Tag and Push
98
- # if: ${{ github.ref_type == 'tag' }}
99
- # run: |
100
- # echo "BRANCH=${{ github.ref }}\nSHA=${{ github.sha }}" > GIT_VERSION
101
- # git add *
102
- # git commit -m "Automated Release v${{ env.THIS_VERSION }}"
103
- # git tag -a "${{ github.ref_name }}" -m "Automated Release v${{ env.THIS_VERSION }}"
104
- # git push
105
- # git push --tags
106
- # working-directory: out/go
87
+ - name : Build Go API Client
88
+ run : go build -v ./
89
+ working-directory : out/go
90
+
91
+ - name : Install test dependencies & run generated tests
92
+ run : |
93
+ go get github.com/stretchr/testify/assert
94
+ go test -v ./test/
95
+ working-directory : out/go
96
+
97
+ - name : Commit, Tag and Push
98
+ if : ${{ github.ref_type == 'tag' }}
99
+ run : |
100
+ echo "BRANCH=${{ github.ref }}\nSHA=${{ github.sha }}" > GIT_VERSION
101
+ git add *
102
+ git commit -m "Automated Release v${{ env.THIS_VERSION }}"
103
+ git tag -a "${{ github.ref_name }}" -m "Automated Release v${{ env.THIS_VERSION }}"
104
+ git push
105
+ git push --tags
106
+ working-directory : out/go
107
107
108
108
# release-java-webclient:
109
109
# name: Release Java Webclient Library
0 commit comments