File tree 2 files changed +48
-6
lines changed
2 files changed +48
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : publish
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ release :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Debug information
12
+ run : |
13
+ echo 'sha: ${{ github.sha }}'
14
+ echo 'ref: ${{ github.ref }}'
15
+
16
+ # This action will download the artifact for workflow runs that
17
+ # happen for this actual commit (the commit that the tag points to).
18
+ # It also restores the files timestamps.
19
+
20
+ - name : Download sdist from commit ${{ github.sha }}
21
+ uses : dawidd6/action-download-artifact@v2
22
+ with :
23
+ workflow : workflow.yml
24
+ workflow_conclusion : success
25
+ commit : ${{ github.sha }}
26
+ name : sdist
27
+ path : dist
28
+
29
+ - name : Display structure of downloaded files
30
+ working-directory : dist/
31
+ run : |
32
+ ls -R
33
+
34
+ - name : Release
35
+ uses : softprops/action-gh-release@v1
36
+ if : startsWith(github.ref, 'refs/tags/')
37
+ with :
38
+ files : |
39
+ dist/*.tar.gz
40
+
41
+
42
+ - name : Publish distribution 📦 to PyPI
43
+ uses : pypa/gh-action-pypi-publish@release/v1
44
+ with :
45
+ user : __token__
46
+ password : ${{ secrets.PYPI_API_TOKEN }}
Original file line number Diff line number Diff line change 1
- |python-versions | |github-build | |appveyor-build | | docs |
1
+ |python-versions | |github-build | |docs |
2
2
3
3
pyaaf2
4
4
======
52
52
53
53
.. |python-versions | image :: https://img.shields.io/badge/python-%3E%3D%202.7-blue.svg
54
54
55
- .. |github-build | image :: https://github.com/markreidvfx/pyaaf2/actions/workflows/python-tests .yml/badge.svg
55
+ .. |github-build | image :: https://github.com/markreidvfx/pyaaf2/actions/workflows/workflow .yml/badge.svg
56
56
:alt: github actions
57
57
:target: https://github.com/markreidvfx/pyaaf2/actions
58
58
59
- .. |appveyor-build | image :: https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true
60
- :alt: appveyor build status
61
- :target: https://ci.appveyor.com/project/markreidvfx/pyaaf2
62
-
63
59
.. |docs | image :: https://readthedocs.org/projects/pyaaf/badge/?version=latest
64
60
:alt: Documentation Status
65
61
:target: http://pyaaf.readthedocs.io/en/latest/?badge=latest
You can’t perform that action at this time.
0 commit comments