Skip to content

Commit

Permalink
cleanup versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastroy committed May 8, 2024
1 parent 0f43519 commit 578ecc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/actions/bumpversion/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ runs:
shell: bash
- name: push to repo
run: |
mkdir -p ~/.ssh
echo "${QCOG_DEPLOY_PUSH_KEY}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
git commit -m "Bump version: $(git tag -l --sort=creatordate | tail -n 1) → $(python -m setuptools_scm --strip-dev) [skip ci]"
git commit -m "Bump version: $(git tag -l --sort=creatordate | tail -n 1) → $(python -m setuptools_scm --strip-dev) [skip ci]"
git tag $(python -m setuptools_scm --strip-dev)
git push [email protected]:${GITHUB_REPOSITORY}
git push --tags [email protected]:${GITHUB_REPOSITORY}
shell: bash

6 changes: 4 additions & 2 deletions .github/workflows/merge_to_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
fetch-depth: 0
- name: Setup python, Lint Code and test
uses: ./.github/actions/setup_and_lint
- name: Build and install our repo
uses: ./.github/actions/python-build
- name: Bump version
uses: ./.github/actions/bumpversion
- name: Build and install our repo
uses: ./.github/actions/python-build
- name: Push version
uses: ./.github/actions/pushversion
env:
QCOG_DEPLOY_PUSH_KEY: ${{ secrets.QCOG_DEPLOY_PUSH_KEY }}
- name: Configure aws credentials
Expand Down

0 comments on commit 578ecc2

Please sign in to comment.