Skip to content

Commit 963587f

Browse files
ci: create tag
1 parent 72c6e0d commit 963587f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/create-tag.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Create tag
2+
on: [push]
3+
4+
jobs:
5+
create-tag:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-python@v5
10+
with:
11+
python-version: "3.12"
12+
- name: Install local package
13+
run: pip install .
14+
- name: Extract version
15+
run: |
16+
VERSION=$(python -c "import importlib.metadata; print(importlib.metadata.version('oc4ids-datastore-pipeline'))")
17+
echo "VERSION=$VERSION" >> $GITHUB_ENV
18+
- name: Print version
19+
run: echo $VERSION
20+
- name: Create tag
21+
run: |
22+
git tag "v${VERSION}"
23+
git push origin "v${VERSION}"

0 commit comments

Comments
 (0)