Skip to content

Commit

Permalink
Merge pull request #16 from deepopinion/chore/ENG-1249-move-old-versi…
Browse files Browse the repository at this point in the history
…on-to-gar

[ENG-1249] Publish to Google Artifact Registry
  • Loading branch information
diogobaeder authored Apr 2, 2024
2 parents 7ab36e5 + 6db4419 commit 27c9e76
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/pip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,47 @@ on:
jobs:
pip-release:
runs-on: ubuntu-latest
env:
TWINE_USERNAME: _json_key_base64
TWINE_PASSWORD: '${{ secrets.PYTHON_CREDENTIALS }}'
TWINE_REPOSITORY: 'https://europe-west1-python.pkg.dev/deepopinion/python-private/'
TWINE_REPOSITORY_URL: 'https://europe-west1-python.pkg.dev/deepopinion/python-private/'
strategy:
max-parallel: 4
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v2

- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install wheel twine build
pip install -e .
# - name: Run tests
# run: |
# pip install pytest pytest-mock
# pytest -m githubtest --disable-warnings ucn/tests

- name: Push package to Gemfury
if: success()
env:
PIP_PUSH: ${{ secrets.PIP_PUSH }}
run: |
sh devops/deploy.sh
- name: Build package
run: |
rm dist/*
python -m build
- name: Upload package to GAR
run: twine upload dist/*

0 comments on commit 27c9e76

Please sign in to comment.