Skip to content

Bump version: 0.3.3 → 0.3.4 #3

Bump version: 0.3.3 → 0.3.4

Bump version: 0.3.3 → 0.3.4 #3

Workflow file for this run

name: publish
on:
workflow_dispatch:
pull_request:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
container:
image: condaforge/mambaforge
volumes:
- ${{ github.workspace }}:/github/workspace
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: mamba install -c conda-forge twine build pip setuptools wheel
- name: Build Library
run: python -m build --sdist --wheel
- name: Expose wheel as artifact
uses: actions/upload-artifact@master
with:
name: dist
path: dist
release:
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download build artifact
uses: actions/download-artifact@master
with:
name: dist
path: dist
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/fdtd-0.3.4.tar.gz
dist/fdtd-0.3.4-py3-none-any.whl
- name: Publish to PyPI
run: |
pip install --user twine \
&& twine upload \
dist/fdtd-0.3.4.tar.gz \
dist/fdtd-0.3.4-py3-none-any.whl \
--username __token__ \
--password ${{ secrets.PYPI_API_TOKEN }}