diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 23d4cc9..59e88a4 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -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/* diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..b34f0a8 --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -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 }}