diff --git a/action.yaml b/action.yaml index 3955ffa..07e383a 100644 --- a/action.yaml +++ b/action.yaml @@ -14,23 +14,5 @@ inputs: runs: using: "composite" steps: - - name: Update apt - run: apt update - - - 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/* + - run: $GITHUB_ACTION_PATH/action.sh + shell: bash