Skip to content

v0.22.0rc1

v0.22.0rc1 #119

Workflow file for this run

name: Publish to PyPI
on:
release:
types: [published]
jobs:
publish:
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
steps:
- name: Download Release
uses: dsaltares/fetch-gh-release-asset@master
with:
file: "viam_sdk.*\\.whl"
regex: true
target: "dist/"
version: tags/${{ github.event.release.tag_name }}
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
- name: Notify Slack
uses: slackapi/[email protected]
if: ${{ !contains(github.event.release.tag_name, 'rc') && !contains(github.event.release.tag_name, 'a') && !contains(github.event.release.tag_name, 'b')}}
with:
payload: |
{
"text": "${{ github.event.release.tag_name }} was released.\n${{ github.event.release.html_url }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}