44 push :
55 tags :
66 - ' v*'
7- workflow_dispatch :
87
9- jobs :
8+ jobs :
109 ubuntu :
11- runs-on : ubuntu-latest
10+ runs-on : ubuntu-latest
1211 strategy :
1312 matrix :
1413 include :
@@ -18,21 +17,20 @@ jobs:
1817 variant_tag : " "
1918 steps :
2019 - uses : actions/checkout@v2
21- - name : Set up Python
20+ - name : Set up Python
2221 uses : actions/setup-python@v2
2322 with :
2423 python-version : ' 3.6'
2524 - name : Get version tag
2625 id : get_version
2726 uses : battila7/get-version-action@v2
2827 - name : Ubuntu-Install dependencies
29- run : |
28+ run : |
3029 sudo apt-get update
3130 sudo apt-get install -y software-properties-common
3231 sudo apt-get install -y build-essential
3332 sudo apt-get install -y python3-dev python3-pip python3-virtualenv
3433 sudo apt-get install -y pkg-config libssl-dev libdbus-1-dev libdbus-glib-1-dev python-dbus libffi-dev libkrb5-dev
35-
3634 - run : |
3735 pip install external/okta-0.0.3.1-py2.py3-none-any.whl
3836 pip install -e .
4745 - name : Get build
4846 run : |
4947 cd dist
50- tar czf "user-sync-${ UST_VERSION}${ UST_VARIANT_TAG} -ubuntu.tar.gz" user-sync
51- env :
48+ tar czf "user-sync-$UST_VERSION $ UST_VARIANT_TAG-ubuntu.tar.gz" user-sync
49+ env :
5250 UST_VARIANT_TAG : ${{matrix.variant_tag}}
5351 UST_VERSION : ${{ steps.get_version.outputs.version }}
5452 - name : Make artifacts
5755 name : user-sync-artifact
5856 path : dist/*.tar.gz
5957 retention-days : 5
60-
58+
59+
6160 windows :
6261 runs-on : windows-latest
6362 strategy :
@@ -67,40 +66,36 @@ jobs:
6766 variant_tag : " -noext"
6867 - extension_support : 1
6968 variant_tag : " "
70- steps :
69+ steps :
7170 - uses : actions/checkout@v2
7271 - uses : actions/setup-python@v2
7372 with :
7473 python-version : ' 3.6'
74+ - name : Get version tag
75+ id : get_version
76+ uses : battila7/get-version-action@v2
7577 - run : |
7678 pip install external/okta-0.0.3.1-py2.py3-none-any.whl
7779 pip install -e .
7880 pip install -e .[test]
7981 pip install -e .[setup]
80- - name : Make Standalone
81- run : |
82- make standalone
82+ - run : make standalone
8383 env :
8484 UST_EXTENSION : ${{matrix.extension_support}}
8585 - name : Test with pytest
8686 run : pytest
87- - name : Get version tag
88- id : get_version
89- uses : battila7/get-version-action@v2
90- - name : zip
87+ - name : Get build
9188 run : |
9289 cd dist
93- 7z a user-sync-${UST_VERSION}${UST_VARIANT_TAG}-win64.zip user-sync.exe
94- env :
95- UST_VARIANT_TAG : ${{matrix.variant_tag}}
96- UST_VERSION : ${{ steps.get_version.outputs.version }}
90+ 7z a user-sync-${{ steps.get_version.outputs.version }}${{matrix.variant_tag}}-win64.zip user-sync.exe
9791 - name : Make artifact
9892 uses : actions/upload-artifact@v2
9993 with :
10094 name : user-sync-artifact
10195 path : dist/*.zip
10296 retention-days : 5
103-
97+
98+
10499 centos :
105100 runs-on : ubuntu-latest
106101 env :
@@ -117,6 +112,9 @@ jobs:
117112 variant_tag : " "
118113 steps :
119114 - uses : actions/checkout@v2
115+ - name : Get version tag
116+ id : get_version
117+ uses : battila7/get-version-action@v2
120118 - name : Centos-Install dependencies
121119 run : |
122120 yum install -y epel-release
@@ -137,24 +135,20 @@ jobs:
137135 UST_EXTENSION : ${{matrix.extension_support}}
138136 - name : Test with pytest
139137 run : pytest -s
140- - name : Get version tag
141- id : get_version
142- uses : battila7/get-version-action@v2
143138 - name : Get build
144139 run : |
145140 cd dist
146141 tar czf "user-sync-${UST_VERSION}${UST_VARIANT_TAG}-centos.tar.gz" user-sync
147142 env :
148143 UST_VARIANT_TAG : ${{matrix.variant_tag}}
149144 UST_VERSION : ${{ steps.get_version.outputs.version }}
150- - name : make atrifact
145+ - name : Make artifact
151146 uses : actions/upload-artifact@v2
152147 with :
153148 name : user-sync-artifact
154149 path : dist/*.tar.gz
155150 retention-days : 5
156-
157-
151+
158152
159153 examples :
160154 runs-on : ubuntu-latest
@@ -178,42 +172,34 @@ jobs:
178172 path : user-sync-examples.tar.gz
179173 retention-days : 5
180174
181- release :
182- runs-on : ubuntu-latest
183- needs : [ubuntu,windows, centos, examples]
184- steps :
185- - uses : actions/checkout@v2
186- - name : Create Release
187- id : create_release
188- uses : actions/create-release@v1
189- env :
190- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
191- with :
192- tag_name : ${{ github.ref }}
193- release_name : user-sync ${{ github.ref }}
194- body_path : .changelog/latest.md
195- draft : true
196- prerelease : false
197-
198- upload-assets :
199- needs : release
200- runs-on : ubuntu-latest
201- steps :
202- - uses : actions/download-artifact@v2
203- - name : Get version tag
204- id : get_version
205- uses : battila7/get-version-action@v2
206- - run : ls -R
207- - uses : fnkr/github-action-ghr@v1
208- if : startsWith(github.ref, 'refs/tags/')
209- env :
210- GHR_PATH : user-sync-artifact/
211- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
212-
213-
214-
215-
216-
217-
218-
219-
175+ # release:
176+ # runs-on: ubuntu-latest
177+ # needs: [ubuntu,windows, centos, examples]
178+ # steps:
179+ # - uses: actions/checkout@v2
180+ # - name: Create Release
181+ # id: create_release
182+ # uses: actions/create-release@v1
183+ # env:
184+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
185+ # with:
186+ # tag_name: ${{ github.ref }}
187+ # release_name: user-sync ${{ github.ref }}
188+ # body_path: .changelog/latest.md
189+ # draft: true
190+ # prerelease: false
191+ #
192+ # upload-assets:
193+ # needs: release
194+ # runs-on: ubuntu-latest
195+ # steps:
196+ # - uses: actions/download-artifact@v2
197+ # - name: Get version tag
198+ # id: get_version
199+ # uses: battila7/get-version-action@v2
200+ # - run: ls -R
201+ # - uses: fnkr/github-action-ghr@v1
202+ # if: startsWith(github.ref, 'refs/tags/')
203+ # env:
204+ # GHR_PATH: user-sync-artifact/
205+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments