Skip to content

improve steps

improve steps #21

Workflow file for this run

name: Python
# https://raw.githubusercontent.com/messense/crfs-rs/main/.github/workflows/Python.yml
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/streamfy
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
- run: npm install
working-directory: streamfy/frontend
- run: npm run build
working-directory: streamfy/frontend
- run: sed -i 's/_RELEASE = False/_RELEASE = True/' __init__.py
working-directory: streamfy
- run: cat __init__.py
working-directory: streamfy
- run: python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1