From 84fc4313a83ac63dad8171ff1d7b53f90c3caf54 Mon Sep 17 00:00:00 2001 From: Jakub Smejkal Date: Wed, 4 Aug 2021 21:05:30 +0200 Subject: [PATCH] Github Actions final fix --- .github/workflows/main.yml | 4 ---- .travis.yml | 32 -------------------------------- README.md | 2 +- 3 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 .travis.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b268844..7466ec4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,9 +19,6 @@ jobs: update-wheel: "false" - name: Build PlatformIO project run: | - echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" | tee -a $GITHUB_ENV - echo "REPOSITORY_NAME=${GITHUB_REPOSITORY##*/}" | tee -a $GITHUB_ENV - export PLATFORMIO_BUILD_FLAGS="-DLED_STRIP_COUNT=144 -DLED_STRIP_TYPE=4" pio run -e release mv .pio/build/release/firmware.bin ${GITHUB_REPOSITORY##*/}-rgbw144-${GITHUB_REF#refs/*/}.bin @@ -42,7 +39,6 @@ jobs: run: | echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" | tee -a $GITHUB_ENV echo "REPOSITORY_NAME=${GITHUB_REPOSITORY##*/}" | tee -a $GITHUB_ENV - mv .pio/build/release/firmware.bin ${GITHUB_REPOSITORY##*/}-${GITHUB_REF#refs/*/}.bin - name: Publish to GitHub Releases if: ${{ github.event_name == 'release' }} uses: softprops/action-gh-release@v0.1.5 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5bb4225..0000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: python -env: - - VERSION=${TRAVIS_TAG:-vdev} -install: - - pip install -U platformio -script: - - export PLATFORMIO_BUILD_FLAGS="-D'VERSION=\"${VERSION}\"' -DLED_STRIP_COUNT=144 -DLED_STRIP_TYPE=4" - - pio run -e release - - mv .pio/build/release/firmware.bin twr-radio-power-controller-rgbw144-${VERSION}.bin - - - export PLATFORMIO_BUILD_FLAGS="-D'VERSION=\"${VERSION}\"' -DLED_STRIP_COUNT=72 -DLED_STRIP_TYPE=4" - - pio run -e release - - mv .pio/build/release/firmware.bin twr-radio-power-controller-rgbw72-${VERSION}.bin - - - export PLATFORMIO_BUILD_FLAGS="-D'VERSION=\"${VERSION}\"' -DLED_STRIP_COUNT=36 -DLED_STRIP_TYPE=4" - - pio run -e release - - mv .pio/build/release/firmware.bin twr-radio-power-controller-rgbw36-${VERSION}.bin - - - export PLATFORMIO_BUILD_FLAGS="-D'VERSION=\"${VERSION}\"' -DLED_STRIP_COUNT=150 -DLED_STRIP_TYPE=3" - - pio run -e release - - mv .pio/build/release/firmware.bin twr-radio-power-controller-rgb150-${VERSION}.bin - - - ls -lha -deploy: - skip_cleanup: true - file_glob: true - file: ./*.bin - api_key: ${GITHUB_KEY} - provider: releases - overwrite: true - on: - tags: true diff --git a/README.md b/README.md index 4be0692..cd2ab85 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # Firmware for HARDWARIO Power Controller Kit -[![Travis](https://travis-ci.org/hardwario/twr-radio-power-controller.svg?branch=master)](https://travis-ci.org/hardwario/twr-radio-power-controller) +[![build](https://github.com/hardwario/twr-radio-power-controller/actions/workflows/main.yml/badge.svg)](https://github.com/hardwario/twr-radio-power-controller/actions/workflows/main.yml) [![Release](https://img.shields.io/github/release/bigclownlabs/bcf-radio-power-controller.svg)](https://github.com/bigclownlabs/bcf-radio-power-controller/releases) [![License](https://img.shields.io/github/license/bigclownlabs/bcf-radio-power-controller.svg)](https://github.com/bigclownlabs/bcf-radio-power-controller/blob/master/LICENSE) [![Twitter](https://img.shields.io/twitter/follow/hardwario_en.svg?style=social&label=Follow)](https://twitter.com/hardwario_en)