Skip to content

Commit

Permalink
add gh action for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonlee5 committed Feb 18, 2024
1 parent 121e6f9 commit bb39543
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Packages
on:
push:
branches:
- 'main'
jobs:
Publish:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install dependencies
run: |
python -m pip install twine build
python -m pip install keyrings.google-artifactregistry-auth
- name: Capture build tag
run: |
echo "COMMIT_TAG=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Make dists
run: |
python -m build
- name: Show output
run: tree .
- name: Setup gcloud
uses: google-github-actions/[email protected]
with:
service_account_key: ${{ secrets.GCP_SA_KEY }}
project_id: ganymede-core-dev
export_default_credentials: true
- name: Publish package
run: |
python3 -m twine upload --verbose --repository-url https://us-central1-python.pkg.dev/ganymede-core-dev/ganymede-py/ dist/*

0 comments on commit bb39543

Please sign in to comment.