Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
fea5932125 | |||
04f557939d | |||
58549a53e4 | |||
64a46e3e7d |
12
.github/workflows/providers/github-release.yml
vendored
12
.github/workflows/providers/github-release.yml
vendored
@ -11,15 +11,11 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Required for creating releases
|
contents: write
|
||||||
issues: read # Required for reading changelog
|
|
||||||
pull-requests: read # Required for reading changelog
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: write # Required for creating releases at job level
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -35,8 +31,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Firmware
|
- name: Build Firmware
|
||||||
run: |
|
run: |
|
||||||
pio run -t buildfs # Build SPIFFS
|
pio run -t buildfs
|
||||||
pio run # Build firmware
|
pio run
|
||||||
|
|
||||||
- name: Merge firmware and SPIFFS
|
- name: Merge firmware and SPIFFS
|
||||||
run: |
|
run: |
|
||||||
@ -53,7 +49,7 @@ jobs:
|
|||||||
- name: Prepare OTA firmware
|
- name: Prepare OTA firmware
|
||||||
run: cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
run: cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create GitHub Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
36
.github/workflows/release.yml
vendored
36
.github/workflows/release.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare:
|
get-version-and-changelog:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
version: ${{ steps.get_version.outputs.VERSION }}
|
version: ${{ steps.get_version.outputs.VERSION }}
|
||||||
@ -36,22 +36,20 @@ jobs:
|
|||||||
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Determine provider
|
github-release:
|
||||||
id: detect-provider
|
needs: get-version-and-changelog
|
||||||
run: |
|
if: github.server_url == 'https://github.com'
|
||||||
if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then
|
uses: ./.github/workflows/providers/github-release.yml
|
||||||
echo "provider=github" >> $GITHUB_OUTPUT
|
with:
|
||||||
else
|
version: ${{ needs.get-version-and-changelog.outputs.version }}
|
||||||
echo "provider=gitea" >> $GITHUB_OUTPUT
|
changelog: ${{ needs.get-version-and-changelog.outputs.changelog }}
|
||||||
fi
|
secrets: inherit
|
||||||
|
|
||||||
release:
|
gitea-release:
|
||||||
needs: prepare
|
needs: get-version-and-changelog
|
||||||
runs-on: ubuntu-latest
|
if: github.server_url != 'https://github.com'
|
||||||
steps:
|
uses: ./.github/workflows/providers/gitea-release.yml
|
||||||
- name: Run provider workflow
|
with:
|
||||||
uses: ./.github/workflows/providers/${{ needs.prepare.outputs.provider == 'github' && 'github' || 'gitea' }}-release.yml
|
version: ${{ needs.get-version-and-changelog.outputs.version }}
|
||||||
with:
|
changelog: ${{ needs.get-version-and-changelog.outputs.changelog }}
|
||||||
version: ${{ needs.prepare.outputs.version }}
|
secrets: inherit
|
||||||
changelog: ${{ needs.prepare.outputs.changelog }}
|
|
||||||
secrets: inherit
|
|
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.2.14] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.14 and refactor release workflows for improved GitHub and Gitea support
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.13] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.13 and enhance release workflow with Python setup and Gitea support
|
||||||
|
|
||||||
|
|
||||||
## [1.2.12] - 2025-02-19
|
## [1.2.12] - 2025-02-19
|
||||||
### Added
|
### Added
|
||||||
- update version to 1.2.12 and refactor release workflows for improved provider detection and execution
|
- update version to 1.2.12 and refactor release workflows for improved provider detection and execution
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.2.12"
|
version = "1.2.14"
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
Reference in New Issue
Block a user