mirror of
https://github.com/GyverLibs/GyverMotor2.git
synced 2026-06-05 14:47:00 +03:00
create workflow
This commit is contained in:
@@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
name: Publish to PlatformIO Registry
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout release tag
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.x"
|
||||||
|
|
||||||
|
- name: Install PlatformIO
|
||||||
|
run: pip install -U platformio
|
||||||
|
|
||||||
|
- name: Check package
|
||||||
|
run: pio pkg pack
|
||||||
|
|
||||||
|
- name: Publish to PlatformIO Registry
|
||||||
|
env:
|
||||||
|
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
|
||||||
|
run: pio pkg publish --owner gyverlibs --non-interactive
|
||||||
Reference in New Issue
Block a user