Skip to content

Commit abaf47f

Browse files
fix: udpate workflow to work on master
1 parent 7fabd12 commit abaf47f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,29 @@
11
name: Upload Python Package
2-
32
on:
43
push:
54
branches:
6-
- main
7-
5+
- master
86
permissions:
97
contents: write
108
id-token: write
119
actions: write
1210
packages: write
13-
1411
jobs:
1512
release:
1613
runs-on: ubuntu-latest
1714
steps:
18-
- name: Checkout main branch
15+
- name: Checkout master branch
1916
uses: actions/checkout@v4
2017
with:
2118
fetch-depth: 0
22-
2319
- name: Set up Python
2420
uses: actions/setup-python@v3
2521
with:
2622
python-version: "3.x"
27-
2823
- name: Install dependencies
2924
run: |
3025
python -m pip install --upgrade pip
3126
pip install build twine python-semantic-release setuptools-scm
32-
3327
- name: Run semantic-release
3428
env:
3529
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -38,10 +32,8 @@ jobs:
3832
git config user.email github-actions@github.com
3933
semantic-release version
4034
semantic-release publish
41-
4235
- name: Build package
4336
run: python -m build
44-
4537
- name: Publish package to PyPI
4638
env:
4739
TWINE_USERNAME: __token__

0 commit comments

Comments
 (0)