Merge branch 'dev' #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "release" | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
name: "Release" | |
runs-on: "ubuntu-latest" | |
permissions: | |
# Required for trusted publishing to PyPI | |
id-token: write | |
contents: write | |
steps: | |
# ... | |
- name: "Build & test" | |
run: | | |
echo "done!" | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "current" | |
prerelease: false | |
title: "Development Build [TODO: Replace label and number with version number]" | |
files: | | |
LICENSE.txt | |
# Publish to PyPI using Trusted Publishers | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build | |
- name: Build package | |
run: python -m build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |