Skip to content

Update release-pypi.yml #23

Update release-pypi.yml

Update release-pypi.yml #23

Workflow file for this run

name: release
on:
push:
tags:
- 'v*.*.*'
pull_request:
branches:
- main
types:
- labeled
- opened
- edited
- synchronize
- reopened
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Cache dependencies
id: pip-cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip
- name: Checkout code
uses: actions/checkout@v3
- name: Build and publish to PyPI
if: ${{ github.event_name == 'push' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
make dist
ls dist/
tar tvf dist/aros_node-*.tar.gz
python3 -m twine upload dist/*