-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (49 loc) · 1.6 KB
/
TapuinoNext-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: TapuinoCI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch, and now hopefully for tags
on:
push:
branches:
- '**'
tags:
- '**'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
# Make the local_config.h file!
- name: Add config-user.h
uses: DamianReeves/write-file-action@v1.2
with:
path: ./include/config-user.h
contents: "#pragma once\n#define I2C_DISP_ADDR 0x27\n#define I2C_DISP_TYPE I2C_DISP_TYPE_HD44780"
write-mode: overwrite
- name: PlatformIO Run
uses: karniv00l/platformio-run-action@v1.1.1
with:
jobs: 6
silent: false
verbose: true
disable-auto-clean: false
- name: Get notes
id: generate_notes
if: startsWith(github.ref, 'refs/tags/')
uses: anmarkoulis/commitizen-changelog-reader@master
with:
tag_name: ${{ github.ref }}
changelog: ./RELEASE_NOTES.md
- name: Release
uses: softprops/action-gh-release@v0.1.14
if: startsWith(github.ref, 'refs/tags/')
with:
body: ${{ format('{0} {1}', '[**Release Notes:**](https://github.com/sweetlilmre/TapuinoNext/blob/main/RELEASE_NOTES.md)', join(fromJson(steps.generate_notes.outputs.notes).notes, '')) }}
files: |
.pio/build/esp32dev/update.bin
.pio/build/esp32dev/update.factory.bin