add workflows
Some checks failed
pdf-auralia-build-and-publish / build-and-publish (push) Failing after 53s
Some checks failed
pdf-auralia-build-and-publish / build-and-publish (push) Failing after 53s
This commit is contained in:
parent
6e0ffe9085
commit
8b4d5826a5
28
.gitea/workflows/publish_tag.yml
Normal file
28
.gitea/workflows/publish_tag.yml
Normal file
@ -0,0 +1,28 @@
|
||||
name: pdf-auralia-build-and-publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3.11
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Build and publish
|
||||
run: |
|
||||
echo $GITHUB_REF
|
||||
sed -i 's/version = "[^"]*"/version = "${GITHUB_REF##*/}"/g' pyproject.toml
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
export PATH="/root/.local/bin:$PATH"
|
||||
poetry --version
|
||||
poetry build
|
||||
poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}
|
||||
env:
|
||||
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
|
Loading…
Reference in New Issue
Block a user