Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
created release.yml for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mys10gan committed Nov 5, 2022
1 parent 5a0f380 commit 9033865
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/pr_test.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
- main

jobs:

test:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -34,27 +33,23 @@ jobs:
python -m pip install --upgrade pip
pip install --upgrade platformio
- name: Get inside the example folder
run: cd examples/simple

- name: Install dependencies
run: pio lib install
working-directory: ./examples/simple
run: pio pkg install

- name: Build
working-directory: ./examples/simple
run: pio run

- name: create env variable for lib version from library.json
id: lib_version
run: echo "::set-output name=version::$(cat library.json | grep "version" | cut -d '"' -f 4)"

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
tag_name: ${{ steps.lib_version.outputs.version }}
release_name: Release ${{ steps.lib_version.outputs.version }}
draft: false
prerelease: false
artifacts: examples/simple/.pio/build/release/*.bin, examples/simple/.pio/build/release/*.elf, examples/simple/.pio/build/release/*.hex
allowUpdates: true
tag: "v${{ steps.lib_version.outputs.version }}"
token: ${{ secrets.TOKEN_GITHUB }}
name: "v${{ steps.lib_version.outputs.version }}"
body: "This is a production build for the v${{ steps.lib_version.outputs.version }}. Changelog will be added in future versions."
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ platform = espressif8266
board = esp12e
framework = arduino
lib_deps =
https://github.com/qube-ai/tiny-webthing.git
; https://github.com/qube-ai/tiny-webthing.git
file://../../

0 comments on commit 9033865

Please sign in to comment.