adding more workflows
This commit is contained in:
parent
8a60459b7b
commit
c6b35a5248
2 changed files with 28 additions and 5 deletions
|
@ -1,8 +1,6 @@
|
||||||
name: Build
|
name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build and Push:
|
Build and Push:
|
||||||
|
@ -18,7 +16,8 @@ jobs:
|
||||||
- name: Build the package
|
- name: Build the package
|
||||||
run: ./.venv/bin/python -m build
|
run: ./.venv/bin/python -m build
|
||||||
|
|
||||||
- name: Publish the package
|
- name: Upload the package
|
||||||
uses: actions/pypi-publish@v1.8.14
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
name: package
|
||||||
|
path: ./dist/*
|
||||||
|
|
24
.forgejo/workflows/publish.yaml
Normal file
24
.forgejo/workflows/publish.yaml
Normal 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 }}
|
Loading…
Reference in a new issue