File tree Expand file tree Collapse file tree 2 files changed +1
-74
lines changed Expand file tree Collapse file tree 2 files changed +1
-74
lines changed Original file line number Diff line number Diff line change 4646 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4747 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
4848
49- build-mac :
50- runs-on : macos-latest
51- strategy :
52- matrix :
53- python : [3.6, 3.7, 3.8]
54-
55- steps :
56- - uses : actions/checkout@v1
57- - name : Set up Python ${{ matrix.python }}
58- uses : actions/setup-python@v2
59- with :
60- python-version : ${{ matrix.python }}
61- - name : Cache node modules
62- 63- with :
64- path : node_modules
65- key : node-${{ hashFiles('package-lock.json') }}
66- - name : Generate package
67- id : package
68- run : |
69- version="${GITHUB_REF##*/*/v}"
70- echo ::set-output name=version::$version
71- npm install
72- npm run build -- $version python${{ matrix.python }}-darwin
73- env :
74- TOKEN : ${{ secrets.TOKEN }}
75- - name : Upload
76- uses : softprops/action-gh-release@v1
77- with :
78- files : " GeodePackage-${{ steps.package.outputs.version }}-python${{ matrix.python }}-darwin.zip"
79- env :
80- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
81- - name : Notify slack
82- if : failure() && github.ref == 'refs/heads/master'
83- uses : 8398a7/action-slack@v2
84- with :
85- status : failure
86- env :
87- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
88- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
89-
9049 build-windows :
9150 runs-on : windows-2016
9251 strategy :
Original file line number Diff line number Diff line change 3737 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3838 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
3939
40- build-mac :
41- runs-on : macos-latest
42- strategy :
43- matrix :
44- python : [3.6, 3.7, 3.8]
45-
46- steps :
47- - uses : actions/checkout@v1
48- - name : Set up Python ${{ matrix.python }}
49- uses : actions/setup-python@v2
50- with :
51- python-version : ${{ matrix.python }}
52- - name : Cache node modules
53- 54- with :
55- path : node_modules
56- key : node-${{ hashFiles('package-lock.json') }}
57- - name : Compile
58- run : |
59- npm install
60- npm run build -- version python${{ matrix.python }}-darwin
61- env :
62- TOKEN : ${{ secrets.TOKEN }}
63- - name : Notify slack
64- if : failure() && github.ref == 'refs/heads/master'
65- uses : 8398a7/action-slack@v2
66- with :
67- status : failure
68- env :
69- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70- SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
71-
7240 build-windows :
7341 runs-on : windows-2016
7442 strategy :
10371
10472 semantic-release :
10573 runs-on : ubuntu-18.04
106- needs : [build-linux, build-mac, build- windows]
74+ needs : [build-linux, build-windows]
10775 steps :
10876 - uses : actions/checkout@v1
10977 - run : npx semantic-release
You can’t perform that action at this time.
0 commit comments