Skip to content

Commit

Permalink
GitHub Actions added
Browse files Browse the repository at this point in the history
  • Loading branch information
SmejkalJakub committed Oct 13, 2021
1 parent 5ed17dc commit aaa2f75
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 54 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build

on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
with:
path: "requirements.txt"
update-pip: "true"
update-setuptools: "false"
update-wheel: "false"

- name: Compile
run: pio run -e release

- name: Set env
if: ${{ github.event_name == 'release' }}
run: |
echo "GITHUB_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
echo "REPOSITORY_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
mv .pio/build/release/firmware.bin ${GITHUB_REPOSITORY##*/}-${GITHUB_REF#refs/*/}.bin
- name: Release
if: ${{ github.event_name == 'release' }}
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
files: ${{ env.REPOSITORY_NAME }}-${{ env.GITHUB_TAG }}.bin
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

70 changes: 35 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<a href="https://www.hardwario.com/"><img src="https://www.hardwario.com/ci/assets/hw-logo.svg" width="200" alt="HARDWARIO Logo" align="right"></a>

# Firmware for HARDWARIO Sigfox Pulse Counter

[![Travis](https://img.shields.io/travis/bigclownlabs/bcf-sigfox-pulse-counter/master.svg)](https://travis-ci.org/bigclownlabs/bcf-sigfox-pulse-counter)
[![Release](https://img.shields.io/github/release/bigclownlabs/bcf-sigfox-pulse-counter.svg)](https://github.com/bigclownlabs/bcf-sigfox-pulse-counter/releases)
[![License](https://img.shields.io/github/license/bigclownlabs/bcf-sigfox-pulse-counter.svg)](https://github.com/bigclownlabs/bcf-sigfox-pulse-counter/blob/master/LICENSE)
[![Twitter](https://img.shields.io/twitter/follow/hardwario_en.svg?style=social&label=Follow)](https://twitter.com/hardwario_en)

This repository contains firmware for sigfox pulse counter project.

If you want to get more information about, firmware and how to work with it, please follow this link:

**https://developers.hardwario.com/firmware/firmware-quick-start**

## Introduction

Sigfox pulse counter to be used as a wireles counter. Device running from two AAA batteries. It reports measured data to Sigfox network every 60 minutes.

## Hardware

The following hardware components are used for this project:

* **[Sensor Module](https://shop.bigclown.com/products/sensor-module)**
* **[Core Module](https://shop.bigclown.com/products/core-module)**
* **[Sigfox Module](https://shop.bigclown.com/products/sigfox-module)**
* **[Mini Battery Module](https://shop.bigclown.com/products/mini-battery-module)**

## License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT/) - see the [LICENSE](LICENSE) file for details.

---

Made with &#x2764;&nbsp; by [**HARDWARIO s.r.o.**](https://www.hardwario.com/) in the heart of Europe.
<a href="https://www.hardwario.com/"><img src="https://www.hardwario.com/ci/assets/hw-logo.svg" width="200" alt="HARDWARIO Logo" align="right"></a>

# Firmware for HARDWARIO Sigfox Pulse Counter

[![build](https://github.com/hardwario/twr-sigfox-pulse-counter/actions/workflows/main.yml/badge.svg)](https://github.com/hardwario/twr-sigfox-pulse-counter/actions/workflows/main.yml)
[![Release](https://img.shields.io/github/release/bigclownlabs/bcf-sigfox-pulse-counter.svg)](https://github.com/bigclownlabs/bcf-sigfox-pulse-counter/releases)
[![License](https://img.shields.io/github/license/bigclownlabs/bcf-sigfox-pulse-counter.svg)](https://github.com/bigclownlabs/bcf-sigfox-pulse-counter/blob/master/LICENSE)
[![Twitter](https://img.shields.io/twitter/follow/hardwario_en.svg?style=social&label=Follow)](https://twitter.com/hardwario_en)

This repository contains firmware for sigfox pulse counter project.

If you want to get more information about, firmware and how to work with it, please follow this link:

**https://developers.hardwario.com/firmware/firmware-quick-start**

## Introduction

Sigfox pulse counter to be used as a wireles counter. Device running from two AAA batteries. It reports measured data to Sigfox network every 60 minutes.

## Hardware

The following hardware components are used for this project:

* **[Sensor Module](https://shop.bigclown.com/products/sensor-module)**
* **[Core Module](https://shop.bigclown.com/products/core-module)**
* **[Sigfox Module](https://shop.bigclown.com/products/sigfox-module)**
* **[Mini Battery Module](https://shop.bigclown.com/products/mini-battery-module)**

## License

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT/) - see the [LICENSE](LICENSE) file for details.

---

Made with &#x2764;&nbsp; by [**HARDWARIO s.r.o.**](https://www.hardwario.com/) in the heart of Europe.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
platformio

0 comments on commit aaa2f75

Please sign in to comment.