Skip to content

Commit

Permalink
add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Goncalo Catarina authored and Goncalo Catarina committed Dec 11, 2023
1 parent 22f3a52 commit ef8917b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+*

jobs:
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11

- name: Install flit
run: pip install flit~=3.4

- name: Build and publish
run: flit publish
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}

- uses: softprops/action-gh-release@v0.1.14
name: Create release
with:
files: |
dist/*
generate_release_notes: true

0 comments on commit ef8917b

Please sign in to comment.