Skip to content

RELEASE: 🎉 Get ready for 2.6.0 #56

RELEASE: 🎉 Get ready for 2.6.0

RELEASE: 🎉 Get ready for 2.6.0 #56

Workflow file for this run

name: "tidy3d-release"
permissions:
contents: write
on:
push:
tags:
- 'v*.*.*'
jobs:
github-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Exit if any RC release
if: contains(${{ github.ref }}, 'rc') == false
uses: everlytic/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_ref: ${{ github.ref }}
target_branch: "latest"
commit_message_template: 'RELEASE: :shipit: :boom: :tada: Merged {source_ref} into target {target_branch}'
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pypi-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build
python -m twine upload --repository pypi dist/*