File tree Expand file tree Collapse file tree 4 files changed +34
-21
lines changed Expand file tree Collapse file tree 4 files changed +34
-21
lines changed Original file line number Diff line number Diff line change @@ -202,8 +202,8 @@ public function getFiles(): array
202
202
],
203
203
[
204
204
'scope ' => 'default ' ,
205
- 'destination ' => '.travis .yml ' ,
206
- 'template ' => 'python/.travis .yml.twig ' ,
205
+ 'destination ' => '.github/workflows/publish .yml ' ,
206
+ 'template ' => 'python/.github/workflows/publish .yml.twig ' ,
207
207
],
208
208
[
209
209
'scope ' => 'enum ' ,
Original file line number Diff line number Diff line change
1
+ name: Publish to PyPI
2
+ on:
3
+ release:
4
+ types: [published]
5
+
6
+ jobs:
7
+ publish:
8
+ name: Release build and publish
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Check out code
12
+ uses: actions/checkout@v4
13
+
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: '3.8'
18
+
19
+ - name: Build package
20
+ run: |
21
+ python -m pip install setuptools wheel build
22
+ python setup.py sdist bdist_wheel
23
+
24
+ - name: Publish package
25
+ run: |
26
+ python -m pip install twine
27
+ python -m twine upload -r pypi dist/*
28
+ env:
29
+ TWINE_USERNAME: __token__
30
+ TWINE_PASSWORD: {{ ' ${{ secrets.PYPI_TOKEN }}' }}
31
+ TWINE_NON_INTERACTIVE: true
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 19
19
20
20
- name: Set up RubyGems
21
21
run: |
22
- cat "---\n:rubygems_api_key: ${{ secrets .RUBYGEMS_API_KEY }}\n" > ~/.gem/credentials
22
+ cat "---\n:rubygems_api_key: {{ ' ${{ secrets.RUBYGEMS_TOKEN }} ' }}\n" > ~/.gem/credentials
23
23
chmod 0600 ~/.gem/credentials
24
24
25
25
- name: Build gem
You can’t perform that action at this time.
0 commit comments