-
Notifications
You must be signed in to change notification settings - Fork 0
131 lines (130 loc) · 5.02 KB
/
release.yml
File metadata and controls
131 lines (130 loc) · 5.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"name": "Release",
"on": { "push": { "tags": "v*" }},
"jobs": {
"release-linux": {
"runs-on": "ubuntu-latest",
"steps": [
{
"name": "Check out code",
"uses": "actions/checkout@v2",
},
{
"name": "Set things up",
"env": { "DISTRO": "fedora:latest" },
"run": "./ci/run-on-linux.sh ./ci/before-deploy.sh",
},
{
"name": "Deploy to PyPI",
"uses": "pypa/gh-action-pypi-publish@v1.1.0",
"with": {
"user": "rharwood",
"password": "${{ secrets.pypi_password }}",
},
},
{
"name": "Deploy stable docs",
"uses": "JamesIves/github-pages-deploy-action@3.7.1",
"with": {
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",
"BRANCH": "gh-pages",
"FOLDER": "ci_docs_build/html",
"TARGET_FOLDER": "stable",
},
},
{
"name": "Create release",
"uses": "actions/create-release@v1",
"id": "cr",
"env": { "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" },
"with": {
"tag_name": "${{ github.ref }}",
"release_name": "${{ github.ref }}",
},
},
{
"id": "tarball",
"run": "echo \"::set-output name=tarball::`ls tag_build/*.tar.gz | awk -F/ '{print $2}'`\""
},
{
"id": "checksum",
"run": "echo \"::set-output name=checksum::`ls tag_build/*.sha512sum | awk -F/ '{print $2}'`\""
},
{
"name": "Upload release tarball",
"uses": "actions/upload-release-asset@v1",
"env": { "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" },
"with": {
"upload_url": "${{ steps.cr.outputs.upload_url }}",
"asset_path": "tag_build/${{ steps.tarball.outputs.tarball }}",
"asset_name": "${{ steps.tarball.outputs.tarball }}",
"asset_content_type": "application/octet-stream",
},
},
{
"name": "Upload release checksum",
"uses": "actions/upload-release-asset@v1",
"env": { "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}" },
"with": {
"upload_url": "${{ steps.cr.outputs.upload_url }}",
"asset_path": "tag_build/${{ steps.checksum.outputs.checksum }}",
"asset_name": "${{ steps.checksum.outputs.checksum }}",
"asset_content_type": "text/plain",
},
},
],
},
"release-windows": {
"runs-on": "windows-latest",
"strategy": {
"matrix": {
"name": [
"win-wheel-3.9",
"win-wheel-3.8",
"win-wheel-3.7",
"win-wheel-3.6",
],
"include": [
{
"name": "win-wheel-3.9",
"pyenv": "3.9",
},
{
"name": "win-wheel-3.8",
"pyenv": "3.8",
},
{
"name": "win-wheel-3.7",
"pyenv": "3.7",
},
{
"name": "win-wheel-3.6",
"pyenv": "3.6",
},
],
},
},
"steps": [
{
"name": "Check out code",
"uses": "actions/checkout@v2",
},
{
"name": "Install the right python",
"uses": "actions/setup-python@v2",
"with": { "python-version": "${{ matrix.pyenv }}" },
},
{
"name": "Create and upload Windows wheel",
"shell": "bash",
"run": "./ci/release-win.sh",
"env": {
"OS_NAME": "windows",
"TWINE_USER": "rharwood",
"TWINE_PASSWORD": "${{ secrets.pypi_password }}",
},
},
],
},
},
}