Skip to content

Commit

Permalink
Update: Github Action Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolPlayLin committed Mar 18, 2023
1 parent 3122888 commit d323071
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 71 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/PullBuildChecking.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/Python-Publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python Package Deploy

on:
pull_request:
types:
- "opened"
- "reopened"
- "edited"
- "synchronize"
push:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11.0'
- name: Install dependencies
run: make
- name: Build package
run: make build
- name: Publish package
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@5d1679fa6b895587c6eb10c3fe82205b440a580e
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/PythonPublish.yml

This file was deleted.

0 comments on commit d323071

Please sign in to comment.