mirror of
https://github.com/PaiGramTeam/paigram-logger.git
synced 2024-11-27 10:10:28 +00:00
👷 Update GitHub action
This commit is contained in:
parent
a9ef8df942
commit
dc311e1ea8
23
.github/workflows/publish.yml
vendored
Normal file
23
.github/workflows/publish.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: Publish Python package
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
release:
|
||||||
|
types: [ published ]
|
||||||
|
# Manual triggers with workflow_dispatch
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Build and publish to pypi
|
||||||
|
uses: JRubics/poetry-publish@v1.16
|
||||||
|
with:
|
||||||
|
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
|
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@ -1,16 +0,0 @@
|
|||||||
name: Python package
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*.*.*"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Build and publish to pypi
|
|
||||||
uses: JRubics/poetry-publish@v1.16
|
|
||||||
with:
|
|
||||||
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
|
|
Loading…
Reference in New Issue
Block a user