Skip to content

Commit 456a08b

Browse files
committed
debugging conda workflow (windows)
1 parent e750ed3 commit 456a08b

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,17 +238,32 @@ jobs:
238238
python-version: ${{ matrix.python-version }}
239239

240240
- name: Install and Setup
241+
if: ${{ matrix.os != 'windows-latest' }}
241242
run: |
242-
#set -x
243+
set -x
243244
244245
python -m pip install -U pip setuptools wheel
245246
python -m pip install -e .[all]
246247
python -m pip install pathlib2 typing_extensions
247248
249+
- name: Install and Setup (Windows)
250+
if: ${{ matrix.os == 'windows-latest' }}
251+
run: |
252+
python -m pip install -U pip setuptools wheel
253+
python -m pip install -e .[all]
254+
python -m pip install pathlib2 typing_extensions
255+
248256
- name: Setup Conda Distribution
257+
if: ${{ matrix.os != 'windows-latest' }}
249258
run: |
250-
#set -x
259+
set -x
260+
261+
mkdir -p conda/wheels
262+
python -m pip download -r conda/requirements.txt -d conda/wheels
251263
264+
- name: Setup Conda Distribution (Windows)
265+
if: ${{ matrix.os == 'windows-latest' }}
266+
run: |
252267
mkdir -p conda/wheels
253268
python -m pip download -r conda/requirements.txt -d conda/wheels
254269
@@ -277,10 +292,21 @@ jobs:
277292
token: ${{ secrets.ANACONDA_TOKEN }} # Replace with the right name of your secret
278293

279294
- name: Upload package to GitHub Release
295+
if: ${{ matrix.os != 'windows-latest' }}
280296
uses: ncipollo/release-action@v1.12.0
281297
with:
282298
allowUpdates: true
283299
artifacts: |
284300
/tmp/compilation-*/**/*.tar.bz2
285301
tag: "v${{ needs.version_check.outputs.PCAPKIT_VERSION }}"
286302
token: "${{ secrets.GITHUB_TOKEN }}"
303+
304+
- name: Upload package to GitHub Release (Windows)
305+
if: ${{ matrix.os == 'windows-latest' }}
306+
uses: ncipollo/release-action@v1.12.0
307+
with:
308+
allowUpdates: true
309+
artifacts: |
310+
/c/Users/*/AppData/Local/Temp/compilation-*/**/*.tar.bz2
311+
tag: "v${{ needs.version_check.outputs.PCAPKIT_VERSION }}"
312+
token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)