Skip to content

Merge pull request #80 from lycosystem/release-1.0.1 #19

Merge pull request #80 from lycosystem/release-1.0.1

Merge pull request #80 from lycosystem/release-1.0.1 #19

Workflow file for this run

name: Test Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Build package from source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Install Python 3
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install build tools
run: |
python3 -m pip install build --user
- name: Build package
run: |
python3 -m build
- name: Upload to CI runner
uses: actions/upload-artifact@v4
with:
name: built-package
path: dist/
testpypi-publish:
name: Publish built package on TestPyPI
runs-on: ubuntu-latest
needs:
- build
# Specifying a GitHub environment is optional, but strongly encouraged
environment:
name: testpypi
url: https://test.pypi.org/p/lyscripts
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
# retrieve your distributions here
- name: Download from CI runner
uses: actions/download-artifact@v4
with:
name: built-package
path: dist/
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/