Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorGFM committed Jan 12, 2022
1 parent 2244892 commit 18400ec
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,23 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.13'

- uses: actions/setup-python@v2
with:
python-version: '3.6'

- name: Run Poetry Image
uses: abatilo/[email protected]
with:
poetry-version: '1.0'

- name: Publish Python SDK
working-directory: ./sdk/python
run: poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --build

- name : Get release version
- name : Get Release Version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
run: echo "RELEASE_VERSION=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV

- name: Release Authenticator Binaries
uses: goreleaser/goreleaser-action@v1
Expand All @@ -28,16 +41,7 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Python SDK
uses: abatilo/[email protected]
with:
python_version: 3.7.8
poetry_version: 1.0
working_directory: ./sdk/python/
args: publish --build
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

- name: Publish Authenticator Docker Image
uses: elgohr/Publish-Docker-Github-Action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"

[tool.poetry]
name = "approzium"
version = "0.2.0"
version = "0.2.3"
description = "Approzium SDK provides Approzium database authentiation for Python"
authors = ["Cyral <[email protected]>"]
homepage = "https://github.com/cyralinc/approzium"
Expand Down

0 comments on commit 18400ec

Please sign in to comment.