Skip to content

Commit

Permalink
Add GitHub release action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Nov 4, 2024
1 parent 06b4c19 commit 9fc6a85
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
paths:
- .github/workflows/ci.yaml
- 'firmware/**'
- "firmware/**"
pull_request:
paths:
- .github/workflows/ci.yaml
- 'firmware/**'
- "firmware/**"

env:
CARGO_TERM_COLOR: always
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release
on:
push:
# tags:
# - "firmware-[0-9]+.[0-9]+.[0-9]+"
# - "firmware-[0-9]+.[0-9]+.[0-9]+-*"
branches:
- release-action

permissions:
contents: write

jobs:
wait_for_ci:
name: Wait for CI Workflow
runs-on: ubuntu-latest
steps:
- name: Wait for CI
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: Image
repo-token: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release
needs: [wait_for_ci]
runs-on: ubuntu-latest
steps:
- name: Download image artifact
uses: actions/download-artifact@v4
with:
name: touch-n-drink-esp32c3
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: firmware/CHANGELOG.md
draft: true
files: touch-n-drink*.bin
2 changes: 1 addition & 1 deletion firmware/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Touch 'n Drink Firmware

Firmware images are automatically build by GitHub actions. They can be downloaded as artifacts of recent [CI][actions] runs <!-- eventually: on the [releases] page --> and flashed [from your browser][esptool-js]. The setup described below is only needed for local development.
Firmware images are automatically build by GitHub actions. They can be downloaded from the [releases] page and flashed [from your browser][esptool-js]. The setup described below is only needed for local development.

## Requirements

Expand Down

0 comments on commit 9fc6a85

Please sign in to comment.