|
94 | 94 |
|
95 | 95 | git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
96 | 96 | git config --local user.name "github-actions[bot]"
|
97 |
| - git tag "conda-${{ needs.conda-update.outputs.PCAPKIT_VERSION }}+0" -m"Conda Build" |
| 97 | + git tag "conda-${{ needs.conda-update.outputs.PCAPKIT_VERSION }}+${{ needs.conda-update.outputs.PCAPKIT_BUILD }}" -m"Conda Build" |
98 | 98 |
|
99 | 99 | - name: Push Changes
|
100 | 100 | uses: ad-m/github-push-action@master
|
@@ -171,17 +171,46 @@ jobs:
|
171 | 171 | auto-activate-base: false
|
172 | 172 | show-channel-urls: true
|
173 | 173 |
|
174 |
| - - name: Build and upload the conda packages |
| 174 | + - name: Build and upload the conda packages (macOS) |
175 | 175 | uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0
|
| 176 | + if: ${{ matrix.os == 'macos-latest' }} |
176 | 177 | env:
|
177 | 178 | PCAPKIT_VERSION: ${{ needs.conda-update.outputs.PCAPKIT_VERSION }}
|
178 |
| - PCAPKIT_BUILD: ${{ needs.conda-update.outputs.PCAPKIT_BUILD }} |
| 179 | + PCAPKIT_BUILD: "0" |
| 180 | + with: |
| 181 | + meta_yaml_dir: conda/pypcapkit |
| 182 | + python-version: ${{ matrix.python-version }} # Values previously defined in `matrix` |
| 183 | + platform_osx-64: true |
| 184 | + user: jarryshaw |
| 185 | + label: ${{ needs.conda-update.outputs.PCAPKIT_CONDA_LABEL }} |
| 186 | + token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret |
| 187 | + |
| 188 | + - name: Build and upload the conda packages (Ubuntu) |
| 189 | + uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0 |
| 190 | + if: ${{ matrix.os == 'ubuntu-latest' }} |
| 191 | + env: |
| 192 | + PCAPKIT_VERSION: ${{ needs.conda-update.outputs.PCAPKIT_VERSION }} |
| 193 | + PCAPKIT_BUILD: "0" |
| 194 | + with: |
| 195 | + meta_yaml_dir: conda/pypcapkit |
| 196 | + python-version: ${{ matrix.python-version }} # Values previously defined in `matrix` |
| 197 | + platform_linux-64: true |
| 198 | + user: jarryshaw |
| 199 | + label: ${{ needs.conda-update.outputs.PCAPKIT_CONDA_LABEL }} |
| 200 | + token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret |
| 201 | + |
| 202 | + - name: Build and upload the conda packages (Windows) |
| 203 | + uses: uibcdf/action-build-and-upload-conda-packages@v1.2.0 |
| 204 | + if: ${{ matrix.os == 'windows-latest' }} |
| 205 | + env: |
| 206 | + PCAPKIT_VERSION: ${{ needs.conda-update.outputs.PCAPKIT_VERSION }} |
| 207 | + PCAPKIT_BUILD: "0" |
179 | 208 | with:
|
180 | 209 | meta_yaml_dir: conda/pypcapkit
|
181 | 210 | python-version: ${{ matrix.python-version }} # Values previously defined in `matrix`
|
182 |
| - platform_all: true |
| 211 | + platform_win-64: true |
183 | 212 | user: jarryshaw
|
184 |
| - label: main |
| 213 | + label: ${{ needs.conda-update.outputs.PCAPKIT_CONDA_LABEL }} |
185 | 214 | token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
|
186 | 215 |
|
187 | 216 | - name: Upload package to GitHub Release
|
|
0 commit comments