Skip to content

Commit 70e3dbf

Browse files
authored
Merge pull request #3 from automated-a11y/ci/release_workflow
Release Workflow
2 parents b3c9456 + 7205d0d commit 70e3dbf

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.github/workflows/release.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
name: Build and Publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: "3.10"
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
python -m pip install --upgrade build
24+
- name: Create Build
25+
run: python -m build
26+
- name: Publish distribution to PyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
28+
with:
29+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
30+
repository_url: https://test.pypi.org/legacy/
31+
- name: Release
32+
uses: softprops/action-gh-release@v1
33+
with:
34+
token: ${{ secrets.GH_TOKEN }}
35+
files: "dist/*"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "python-a11y-playwright"
7-
version = "0.0.2"
7+
version = "0.0.3"
88
authors = [
99
{ name="Sridhar Bandi", email="[email protected]" },
1010
]

0 commit comments

Comments
 (0)