From 04738832e19ff5de94821480856b632e3ffd94dc Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Tue, 27 Aug 2024 17:01:37 +0200 Subject: [PATCH] [CI] different scheme for versioning --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62fff1c..3af7fbf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: Publish To PyPI on: push: branches: ['main'] - + jobs: build-publish: runs-on: ubuntu-latest @@ -12,14 +12,14 @@ jobs: - uses: actions/checkout@v2 - name: Set environnment package version from commit - run: echo "PACKAGE_VERSION=v0.0.0-$(date +%Y%m%d)-${{ github.sha }}" >> $GITHUB_ENV # use same convention as Go bindings - + run: echo "PACKAGE_VERSION=v0.2.$(date +%Y%m%d).${{ github.sha }}" >> $GITHUB_ENV # use same convention as Go bindings + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: python-version: "3.12" - - name: Install dependencies + - name: Install dependencies run: pip install build twine - name: Build wheel