@@ -19,6 +19,7 @@ Available actions are:
191914 . [ update_airflow_variables] ( #update_airflow_variables )
202015 . [ contribute_changes] ( #contribute_changes )
212116 . [ activate_workflow] ( #activate_workflow )
22+ 16 . [ setup_aws_ca] ( #setup_aws_ca )
2223
2324## semver_release
2425
@@ -801,3 +802,54 @@ jobs:
801802 project_name: ${{ env.PROJECT_NAME }}
802803 id: read
803804` ` `
805+
806+ # # setup_aws_ca
807+
808+ Setup AWS CodeArtifact credentials
809+
810+ # ## Inputs
811+ | Name | Description | Optional | Default Value |
812+ |---------------------|:-------------------------------------------------|----------|---------------|
813+ | aws_access_key | AWS access key | False | |
814+ | aws_access_key_id | AWS access key ID | False | |
815+ | mode | Setup for read or publish | False | |
816+ | aws_ca_domain | AWS CodeArtifact domain | False | |
817+ | aws_ca_domain_owner | AWS CodeArtifact domain owner name | False | |
818+ | aws_ca_repository | AWS CodeArtifact repository name | False | |
819+ | aws_region | AWS region where the artifact storage is located | True | eu-central-1 |
820+
821+ # ## Outputs
822+ | Name | Description |
823+ |-------|:------------------------------------------------------|
824+ | url | Python artifact storage URL (pip or twine-compatible) |
825+ | user | User Name |
826+ | token | Access token |
827+
828+ # ## Usage
829+ ` ` ` yaml
830+ name: Deploy latest tag
831+
832+ on:
833+ workflow_dispatch:
834+
835+ jobs:
836+ create_release:
837+ runs-on: ubuntu-latest
838+ steps:
839+ - name: Setup AWS CA
840+ uses: SneaksAndData/github-actions/setup_aws_ca@v0.1.1
841+ with:
842+ aws_access_key: ${{ env.AWS_ACCESS_KEY }}
843+ aws_access_key_id: ${{ env.AWS_ACCESS_KEY_ID }}
844+ mode: read
845+ aws_ca_domain: some-domain
846+ aws_ca_domain_owner: some-domain-owner
847+ aws_ca_repository: some-repository
848+ id: aws_ca
849+ - name: Install Poetry and dependencies
850+ uses: SneaksAndData/github-actions/install_poetry@v0.1.0
851+ with:
852+ pypi_repo_url: ${{ steps.aws_ca.outputs.url }}
853+ pypi_token_username: ${{ steps.aws_ca.outputs.user }}
854+ pypi_token: ${{ steps.aws_ca.outputs.token }}
855+ ` ` `
0 commit comments