Skip to content

Merge pull request #3 from brisvag/dependabot/github_actions/actions/… #131

Merge pull request #3 from brisvag/dependabot/github_actions/actions/…

Merge pull request #3 from brisvag/dependabot/github_actions/actions/… #131

Workflow file for this run

name: deploy
on:
push:
branches:
- main
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.repository == 'brisvag/stemia' && contains(github.ref, 'tags') }}
steps:
- uses: actions/checkout@v4
- 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 -U setuptools setuptools_scm wheel twine build
- name: Build
run: |
git tag
python -m build
twine check dist/*
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
- name: Publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: twine upload dist/*