Skip to content

Commit

Permalink
simplify release process
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Jan 22, 2025
1 parent 5a60877 commit d584079
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
release:
name: Release
if: ${{ github.repository_owner == 'mathieucarbou' && github.event_name != 'pull_request' && ( github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') ) }}
if: ${{ github.repository_owner == 'mathieucarbou' && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
needs: [test]
permissions:
Expand All @@ -150,38 +150,9 @@ jobs:
ls -R artifacts
find artifacts -name '*.bin' -exec mv {} artifacts/ \;
- name: Pre-Release
if: ${{ github.ref == 'refs/heads/main' }}
uses: mathieucarbou/marvinpinto-action-automatic-releases@latest
with:
repo_token: "${{ secrets.ACCESS_TOKEN }}"
automatic_release_tag: latest
prerelease: true
title: Pre-release Builds
files: |
artifacts/*.bin
tools/factory.py
- name: Changelog
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
id: github_release
uses: mikepenz/release-changelog-builder-action@v5
with:
failOnError: true
commitMode: true
configuration: ".github/workflows/release-notes-config.json"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: Release
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: softprops/action-gh-release@v2
with:
body: ${{steps.github_release.outputs.changelog}}
append_body: true
draft: false
files: |
artifacts/*.bin
tools/factory.py
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
4 changes: 2 additions & 2 deletions examples/App/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ upload_protocol = esptool
lib_compat_mode = strict
lib_ldf_mode = chain
lib_deps =
mathieucarbou/AsyncTCP @ 3.3.2
mathieucarbou/ESPAsyncWebServer @ 3.6.0
ESP32Async/AsyncTCP @ 3.3.2
ESP32Async/ESPAsyncWebServer @ 3.6.0
mathieucarbou/MycilaSystem @ 4.0.0
build_flags =
-Wall -Wextra
Expand Down
4 changes: 2 additions & 2 deletions test/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ upload_protocol = esptool
lib_compat_mode = strict
lib_ldf_mode = chain
lib_deps =
mathieucarbou/AsyncTCP @ 3.3.2
mathieucarbou/ESPAsyncWebServer @ 3.6.0
ESP32Async/AsyncTCP @ 3.3.2
ESP32Async/ESPAsyncWebServer @ 3.6.0
mathieucarbou/MycilaSystem @ 4.0.0
build_flags =
-Wall -Wextra
Expand Down

0 comments on commit d584079

Please sign in to comment.