adding more workflows
Some checks failed
Lint / Lint Code (Ruff & Pylint) (push) Failing after 15s
Build / Build and Push (push) Successful in 26s

This commit is contained in:
Seaswimmer 2024-06-22 01:29:20 -04:00
parent 8a60459b7b
commit c6b35a5248
Signed by: cswimr
GPG key ID: 3813315477F26F82
2 changed files with 28 additions and 5 deletions

View file

@ -1,8 +1,6 @@
name: Build
on:
push:
tags:
- '*'
jobs:
Build and Push:
@ -18,7 +16,8 @@ jobs:
- name: Build the package
run: ./.venv/bin/python -m build
- name: Publish the package
uses: actions/pypi-publish@v1.8.14
- name: Upload the package
uses: actions/upload-artifact@v3
with:
password: ${{ secrets.PYPI_API_TOKEN }}
name: package
path: ./dist/*

View file

@ -0,0 +1,24 @@
name: Publish
on:
push:
tags:
- '*'
jobs:
Build and Publish:
runs-on: docker
container: www.coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m venv .venv && ./.venv/bin/pip install -r ./requirements.txt
- name: Build the package
run: ./.venv/bin/python -m build
- name: Publish the package
uses: actions/pypi-publish@v1.8.14
with:
password: ${{ secrets.PYPI_API_TOKEN }}