+2
-20
@@ -14,23 +14,5 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Update apt
|
- run: $GITHUB_ACTION_PATH/action.sh
|
||||||
run: apt update
|
shell: bash
|
||||||
|
|
||||||
- name: Install pipx
|
|
||||||
run: apt install pipx
|
|
||||||
|
|
||||||
- name: Install mpy-cross
|
|
||||||
run: pipx install mpy-cross
|
|
||||||
|
|
||||||
- name: make "dist" dir
|
|
||||||
run: mkdir dist
|
|
||||||
|
|
||||||
- name: Compile py files to mpy
|
|
||||||
run: for f in ./*.py; do pipx run mpy-cross "$f" -o dist/test/$(basename "$f" .py).mpy; done
|
|
||||||
|
|
||||||
- name: Build project
|
|
||||||
run: source .venv/bin/activate && python -m build
|
|
||||||
|
|
||||||
- name: Publish package
|
|
||||||
run: source .venv/bin/activate && python -m twine upload --repository repo ./dist/*
|
|
||||||
|
|||||||
Reference in New Issue
Block a user