Skip to content

add a publish workflow #1

add a publish workflow

add a publish workflow #1

Workflow file for this run

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