We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b0231 commit 3d5b653Copy full SHA for 3d5b653
.github/workflows/build.yml
@@ -1,10 +1,10 @@
1
-name: CI/CD
+name: build
2
3
on:
4
push:
5
branches:
6
- main
7
- - '**'
+ - "**"
8
pull_request:
9
10
@@ -59,9 +59,9 @@ jobs:
59
- name: Update version for staging (non-main branches)
60
if: github.ref != 'refs/heads/main'
61
run: |
62
- COMMIT_HASH=$(git rev-parse --short HEAD)
+ TIMESTAMP=$(date +%Y%m%d%H%M%S)
63
CURRENT_VERSION=$(grep '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
64
- NEW_VERSION="${CURRENT_VERSION}.dev${COMMIT_HASH}"
+ NEW_VERSION="${CURRENT_VERSION}.dev${TIMESTAMP}"
65
sed -i "s/^version = .*/version = \"${NEW_VERSION}\"/" pyproject.toml
66
echo "Publishing version ${NEW_VERSION} to Test PyPI"
67
0 commit comments