Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Satre authored May 9, 2024
1 parent de2ba10 commit 07177c1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ name: Python CI
on:
workflow_dispatch:

env:
AWS_ACCOUNT: "653197303645"
AWS_REGION: us-east-1
CODEARTIFACT_DOMAIN: tmf
CODEARTIFACT_PYPI_REPOSITORY: fool-pypi

jobs:
package_repository:
runs-on: fool-runners
Expand Down Expand Up @@ -37,11 +31,8 @@ jobs:
python-version: "3.11"

- name: Install python dependencies
env:
PIP_INDEX_URL: https://aws:${{ steps.set_vars.outputs.token }}@${{ env.CODEARTIFACT_DOMAIN }}-${{ env.AWS_ACCOUNT }}.d.codeartifact.${{ env.AWS_REGION }}.amazonaws.com/pypi/${{ env.CODEARTIFACT_PYPI_REPOSITORY }}/simple/
run: |
pip install -U pip
pip config set global.index-url $PIP_INDEX_URL
pip install .
pip install build
pip install setuptools_scm
Expand All @@ -51,4 +42,4 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: |
python -m build --sdist --wheel --outdir dist/ .
twine upload --skip-existing --repository-url https://${{ env.CODEARTIFACT_DOMAIN }}-${{ env.AWS_ACCOUNT }}.d.codeartifact.${{ env.AWS_REGION }}.amazonaws.com/pypi/${{ env.CODEARTIFACT_PYPI_REPOSITORY }}/ -u aws -p ${{needs.package_repository.outputs.codeartifact_auth_token}} dist/*
twine upload --skip-existing --repository-url https://tmf-653197303645.d.codeartifact.us-east-1.amazonaws.com/pypi/fool-python/ -u aws -p ${{needs.package_repository.outputs.codeartifact_auth_token}} dist/*

0 comments on commit 07177c1

Please sign in to comment.