Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
xbrianh committed Sep 2, 2024
1 parent 5a6d786 commit e09ced3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/tox.yml → .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [ "main" ]

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -47,3 +47,18 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: tox
pypi-publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xdlake
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Build
run: |
make build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ Please report bugs, issues, feature requests, etc. on [GitHub](https://github.co
[launch gitpod workspace](https://gitpod.io/#https://github.com/xbrianh/xdlake)

## Build Status
![main](https://github.com/xbrianh/xdlake/actions/workflows/tox.yml/badge.svg)
![main](https://github.com/xbrianh/xdlake/actions/workflows/cicd.yml/badge.svg)

0 comments on commit e09ced3

Please sign in to comment.