Skip to content

Commit

Permalink
build: github action pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
codematrixer committed Sep 5, 2024
1 parent 6ee9f07 commit 37e1304
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
release:
types: [created]

jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine poetry
poetry install
- name: Build a binary wheel and a source tarball
run: poetry build

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: dist
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[tool.poetry]
name = "hmdriver2"
version = "1.0.1"
version = "1.0.0"
description = "UI Automation Framework for Harmony Next"
authors = ["codematrixer <chenli_gogo@163.com>"]
license = "MIT"
readme = "README.md"
include = ["*/asset/*"]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down

0 comments on commit 37e1304

Please sign in to comment.