From 4884a4693f85d6152cfdfcb9c9ba4f1bbea4830e Mon Sep 17 00:00:00 2001 From: Vijay Vammi Date: Thu, 18 Apr 2024 04:18:28 +0100 Subject: [PATCH] Semantic versioning (#142) * ci: fixing semantic versioning * ci: fixing semantic versioning * ci: fixing semantic versioning * fixing the mess * fix: the mess * ci: fixing semantic versioning * fix: the mess * ci: fixing semantic versioning * fix: forcing release * ci: fixing semantic versioning * fix: forcing release * ci: fixing semantic versioning * fix: forcing release * ci: fixing semantic versioning * ci: fixing semantic versioning * ci: adding pandas to test * ci: adding pandas to test --- .github/workflows/release.yaml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 39e05972..575a1148 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,7 +62,7 @@ jobs: VERSION=$(python -m poetry run semantic-release --noop version --print) echo "new: $VERSION" - python -m poetry run semantic-release version --tag --push + # python -m poetry run semantic-release version --tag --push if [ "$CURRENT" == "$VERSION" ]; then echo "version=$VERSION" >> $GITHUB_OUTPUT @@ -72,21 +72,21 @@ jobs: echo "version=$VERSION" >> $GITHUB_OUTPUT exit 0 - # - name: Apply new tag - # if: steps.last_tag.outcome == 'success' - # env: - # VERSION: ${{ steps.last_tag.outputs.version }} - # uses: actions/github-script@v6 - # with: - # script: | - # const {VERSION} = process.env - # const tag = `refs/tags/${VERSION}` - # await github.rest.git.createRef({ - # owner: context.repo.owner, - # repo: context.repo.repo, - # ref: tag, - # sha: context.sha - # }) + - name: Apply new tag + if: steps.last_tag.outcome == 'success' + env: + VERSION: ${{ steps.last_tag.outputs.version }} + uses: actions/github-script@v6 + with: + script: | + const {VERSION} = process.env + const tag = `refs/tags/${VERSION}` + await github.rest.git.createRef({ + owner: context.repo.owner, + repo: context.repo.repo, + ref: tag, + sha: context.sha + }) - name: Publish to PyPI if: steps.last_tag.outcome == 'success' env: