Skip to content

publish

publish #5

Workflow file for this run

name: publish
on:
push:
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:
name: dist
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:
name: dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true