Skip to content

remove dat; remove windows test; change pypi project; add more python… #4

remove dat; remove windows test; change pypi project; add more python…

remove dat; remove windows test; change pypi project; add more python… #4

Workflow file for this run

# this file is *not* meant to cover or endorse the use of GitHub Actions, but rather to
# help make automated releases for this project
name: Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ '**' ]
jobs:
build-and-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/shinny-filelock
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Edit version number
if: startsWith(github.event.ref, 'refs/tags')
run: |
sed -i "s@0\.0\.0@$(echo ${GITHUB_REF##*/})@" pyproject.toml
- name: Install build dependencies
run: python -m pip install -U setuptools wheel build
- name: Build
run: python -m build .
- name: Publish
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true