Skip to content

Commit

Permalink
ci: added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSte committed Apr 7, 2024
1 parent 1e901dd commit 44fda4e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

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

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build dist
run: |
sudo apt-get install -y python3 python3-venv python3-pip
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install build
python3 -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- develop

jobs:
bats-test:
test:
runs-on: ubuntu-latest

steps:
Expand Down
13 changes: 0 additions & 13 deletions publish

This file was deleted.

0 comments on commit 44fda4e

Please sign in to comment.