Skip to content

Commit dc0f378

Browse files
committed
new workflow
1 parent d13815d commit dc0f378

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Binaries
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
name: Publish binaries
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Build
16+
run: cargo build --release
17+
- name: Upload binaries to release
18+
uses: svenstaro/upload-release-action@v2
19+
with:
20+
repo_token: ${{ secrets.PAT }}
21+
file: README.md
22+
asset_name: mything
23+
tag: ${{ github.ref }}
24+
overwrite: true

.github/workflows/python-package.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,3 @@ jobs:
4646
run: |
4747
pytest --doctest-glob="*.md" --doctest-modules --cov=callscript --cov-report term --cov-report html:htmlcov --cov-report xml
4848
coveralls --service=github
49-
- name: Upload binaries to release
50-
if: ${{startsWith(github.ref, 'refs/tags/') }}
51-
uses: svenstaro/upload-release-action@v2
52-
with:
53-
repo_token: ${{ secrets.PAT }}
54-
file: README.md
55-
tag: ${{ github.ref }}
56-
overwrite: true
57-
body: ${{ github.ref }}
58-

.github/workflows/python-publish.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,3 @@ jobs:
3737
with:
3838
user: __token__
3939
password: ${{ secrets.PYPI_API_TOKEN }}
40-
# - name: Upload files to a GitHub release
41-
# uses: svenstaro/[email protected]
42-
# with:
43-
# file: README.md
44-
# asset_name: README-Release.md
45-
# overwrite: true
46-
# # If true the file can be a glob pattern, asset_name is ignored if this is true.
47-
# # file_glob: # optiona
48-

0 commit comments

Comments
 (0)