forked from Benchling-Open-Source/allotropy
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 998 Bytes
/
publish-package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/*