Skip to content

Commit

Permalink
Semantic versioning (#142)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vijayvammi authored Apr 18, 2024
1 parent 7e1174c commit 4884a46
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 4884a46

Please sign in to comment.