Skip to content

Prepare release 1.0.1 (#62) #2

Prepare release 1.0.1 (#62)

Prepare release 1.0.1 (#62) #2

name: build-deploy-and-release
# Only run this workflow when a diepvries/* tag gets pushed
on:
push:
tags:
- diepvries/*
jobs:
deploy-to-pypi:
runs-on: ubuntu-22.04
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.9
- name: Install dependencies
run: python -m pip install tox
- name: Run tox build
run: python -m tox -e build
- name: Run tox upload
run: python -m tox -e upload
create-github-release:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Github release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false