@@ -96,44 +96,37 @@ jobs:
9696 name : tools-${{ matrix.os }}-${{ matrix.arch }}
9797 path : " *.zip"
9898
99- build-and-upload-docs :
100- needs : [build-and-test]
101- runs-on : ubuntu-latest
102- steps :
103- - uses : actions/checkout@v4
104- with :
105- ref : ${{ github.event.inputs.version || github.ref }}
106- - uses : actions/cache@v4
107- with :
108- path : |
109- ~/.cache/bazelisk
110- ~/.cache/bazel
111- key : bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
112- restore-keys : bazel-
113- - run : bazelisk build "//api:api.html"
114- - name : Upload API docs
115- uses : actions/upload-artifact@v4
116- with :
117- name : api.html
118- path : |
119- bazel-bin/api/api.html/api.html
99+ # build-and-upload-docs:
100+ # needs: [build-and-test]
101+ # runs-on: ubuntu-latest
102+ # steps:
103+ # - uses: actions/checkout@v4
104+ # with:
105+ # ref: ${{ github.event.inputs.version || github.ref }}
106+ # - uses: actions/cache@v4
107+ # with:
108+ # path: |
109+ # ~/.cache/bazelisk
110+ # ~/.cache/bazel
111+ # key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
112+ # restore-keys: bazel-
113+ # - run: bazelisk build "//api:api.html"
114+ # - name: Upload API docs
115+ # uses: actions/upload-artifact@v4
116+ # with:
117+ # name: api.html
118+ # path: |
119+ # bazel-bin/api/api.html/api.html
120120
121121 create-release :
122122 needs : [build-and-upload-tools]
123123 runs-on : ubuntu-latest
124- # if: |
125- # github.event_name == 'workflow_dispatch' &&
126- # inputs.create_release == true &&
127- # inputs.version != ''
128- # if: |
129- # github.event_name == 'workflow_dispatch' &&
130- # inputs.create_release == true &&
131- # inputs.version != ''
132-
124+ if : |
125+ startsWith( github.ref, 'refs/heads/release-' )
133126 steps :
134127 - uses : actions/checkout@v4
135128 with :
136- ref : ${{ github.event.inputs.version || github. ref }}
129+ ref : ${{ github.ref }}
137130 - name : Download all artifacts
138131 uses : actions/download-artifact@v4
139132 with :
0 commit comments