Skip to content

Commit 9f2e26f

Browse files
authored
Merge pull request #266 from OpenEVSE/jeremypoulter/release_process
Automated Release process
2 parents 68780d3 + d22c016 commit 9f2e26f

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gitsubmodule
4+
directory: /
5+
pull-request-branch-name:
6+
separator: "-"
7+
schedule:
8+
interval: daily
9+
reviewers:
10+
- "jeremypoulter"
11+
- "glynhudson"
12+
- "chris1howell"

.github/workflows/build.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PlatformIO CI
1+
name: Build/Release OpenEVSE
22

33
on:
44
workflow_dispatch:
@@ -85,3 +85,33 @@ jobs:
8585
name: ${{ matrix.env }}.bin
8686
path: .pio/build/${{ matrix.env }}/firmware.bin
8787

88+
release:
89+
runs-on: ubuntu-latest
90+
needs: build
91+
if: github.ref == 'refs/heads/master'
92+
93+
steps:
94+
- name: Download the built assets
95+
uses: actions/download-artifact@v2
96+
with:
97+
path: artifacts
98+
99+
- name: Rename images to something more sensible
100+
run: |
101+
find artifacts -name 'firmware.bin' | while read -r image; do
102+
dir=$(dirname "${image}")
103+
board=$(basename "${dir}")
104+
echo mv "$image" "$board"
105+
mv "$image" "$board"
106+
done
107+
108+
- name: Upload assets to latest release
109+
uses: "marvinpinto/action-automatic-releases@latest"
110+
with:
111+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
112+
automatic_release_tag: "latest"
113+
prerelease: true
114+
title: "Development Build"
115+
files: |
116+
*.bin
117+

0 commit comments

Comments
 (0)