diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..d9ee5fb --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,36 @@ +name: publish + +on: + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: python3 -m pip install build --user + - run: python3 -m build + - uses: actions/upload-artifact@v4 + with: + path: dist/ + + pypi: + needs: + - build + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/p/btrfs2s3 + permissions: + id-token: write + steps: + - uses: actions/download-artifact@v4 + with: + path: dist/ + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + attestations: true