You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cfbc4a4
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+29-15Lines changed: 29 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,41 @@
1
1
name: release
2
2
3
-
permissions:
4
-
contents: read
5
-
6
3
on:
7
4
release:
8
5
types: [published]
9
6
10
7
jobs:
8
+
build:
9
+
runs-on: ubuntu-latest
10
+
steps:
11
+
- uses: actions/checkout@v7
12
+
- name: Set up Python
13
+
uses: actions/setup-python@v7
14
+
with:
15
+
python-version: '3.13'
16
+
- name: Build distributions
17
+
run: |
18
+
python -m pip install --upgrade build twine
19
+
python -c "import os, runpy; version = runpy.run_path('facturapi/version.py')['__version__']; assert os.environ['GITHUB_REF_NAME'] == f'v{version}', 'release tag must match package version'"
0 commit comments