Skip to content

Commit 4bf63b9

Browse files
committed
multiple pythons, better upload script
1 parent 49e1631 commit 4bf63b9

1 file changed

Lines changed: 25 additions & 13 deletions

File tree

.github/workflows/build.yaml

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
runs-on: windows-2019
7+
strategy:
8+
max-parallel: 4
9+
matrix:
10+
python-version: ['3.8', '3.9', '3.10']
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
13+
# runs-on: ${{ matrix.os }}
14+
runs-on: windows-latest
815
steps:
916
- name: Check-out repository
1017
uses: actions/checkout@v2
@@ -13,7 +20,7 @@ jobs:
1320
uses: s-weigand/setup-conda@v1
1421
with:
1522
update-conda: true
16-
python-version: 3.8
23+
python-version: ${{ matrix.python-version }}
1724

1825
- name: Install dependencies
1926
run: |
@@ -29,20 +36,25 @@ jobs:
2936
3037
upload:
3138
needs: build
32-
runs-on: windows-2019
39+
runs-on: ubuntu-latest
3340
steps:
3441

35-
- name: Upload zipped offline app installer to GitHub releases
36-
uses: ncipollo/release-action@v1
42+
- uses: actions/upload-artifact@v2
3743
with:
38-
draft: true
39-
prerelease: true
40-
allowUpdates: true
41-
replacesArtifacts: true
42-
token: ${{ secrets.GITHUB_TOKEN }}
43-
artifacts: ./**/*.whl
44-
tag: 1.4.1
45-
body: This is an alpha build of diffpy2
44+
name: diffpy2 - Python ${{ matrix.python-version }}
45+
path: ${{ github.workspace }}/dist/*
46+
47+
# - name: Upload zipped offline app installer to GitHub releases
48+
# uses: ncipollo/release-action@v1
49+
# with:
50+
# draft: true
51+
# prerelease: true
52+
# allowUpdates: true
53+
# replacesArtifacts: true
54+
# token: ${{ secrets.GITHUB_TOKEN }}
55+
# artifacts: dist/*.whl
56+
# tag: 1.4.1
57+
# body: This is an alpha build of diffpy2
4658

4759

4860
# upload:

0 commit comments

Comments
 (0)