Skip to content

Commit cf8eb02

Browse files
authored
chore: updated pipelines to draft releases with exported binaries (#11)
1 parent 5f13002 commit cf8eb02

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.github/release-drafter.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name-template: 'Release v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: ':rocket: Features and Enhancements'
5+
labels:
6+
- 'feat'
7+
- 'Feature'
8+
- 'Enhancement'
9+
- title: ':bug: Bug Fixes'
10+
label: 'Fix'
11+
- title: ':wrench: Maintenance'
12+
labels:
13+
- 'Chore'
14+
- title: ':page_facing_up: Documentation'
15+
label: 'Documentation'
16+
change-template: '- $TITLE (#$NUMBER) - @$AUTHOR'
17+
exclude-contributors:
18+
- 'dependabot'
19+
- 'dependabot[bot]'
20+
exclude-labels:
21+
- 'Dependencies'
22+
- 'Chore'
23+
version-resolver:
24+
major:
25+
labels:
26+
- 'major'
27+
minor:
28+
labels:
29+
- 'minor'
30+
patch:
31+
labels:
32+
- 'patch'
33+
default: patch
34+
template: |-
35+
## Changes
36+
$CHANGES
37+
38+
This release was made possible thanks to $CONTRIBUTORS

.github/workflows/compile.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
push:
88
branches:
99
- main
10+
env:
11+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1012

1113
jobs:
1214
build:
@@ -31,3 +33,18 @@ jobs:
3133
- name: esp8266:esp8266
3234
source-url: http://arduino.esp8266.com/stable/package_esp8266com_index.json
3335
sketch-paths: src/
36+
cli-compile-flags: |
37+
- --export-binaries
38+
39+
- name: Draft Release
40+
if: ${{ github.event_name == 'push' }}
41+
id: draft-release
42+
uses: release-drafter/release-drafter@v6
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
46+
- name: Upload Release Assets
47+
if: ${{ github.event_name == 'push' }}
48+
run: |
49+
gh release upload ${{ steps.draft-release.outputs.tag_name }} src/ESP01Firmware/build/esp8266.esp8266.generic/ESP01Firmware.ino.bin --clobber
50+

0 commit comments

Comments
 (0)