forked from grafana/django-saml2-auth
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updating module * set alias * add publish action * Update version * Update publish.yaml --------- Co-authored-by: tchilcutt <tchilcutt@fool.com>
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Python CI | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
package_repository: | ||
runs-on: fool-runners | ||
steps: | ||
- name: Assume role | ||
with: | ||
role-to-assume: arn:aws:iam::653197303645:role/tmf/github-runner-role | ||
aws-region: us-east-1 | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
|
||
- name: set_vars | ||
id: set_vars | ||
shell: bash | ||
run: | | ||
CODEARTIFACT_AUTH_TOKEN=$(aws codeartifact get-authorization-token --domain tmf --query authorizationToken --output text) | ||
echo "token=${CODEARTIFACT_AUTH_TOKEN}" >> $GITHUB_OUTPUT | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 0 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install python dependencies | ||
run: | | ||
pip install -U pip | ||
pip install . | ||
pip install build | ||
pip install setuptools_scm | ||
pip install twine | ||
- name: Upload package | ||
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://tmf-653197303645.d.codeartifact.us-east-1.amazonaws.com/pypi/fool-python/ -u aws -p ${{needs.package_repository.outputs.codeartifact_auth_token}} dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters