Compare commits
3 Commits
b13f2c4eee
...
c7c122a505
Author | SHA1 | Date | |
---|---|---|---|
c7c122a505 | |||
d1bb4b7c83 | |||
dc5118587c |
@ -1,9 +1,7 @@
|
|||||||
name: Gitea Release
|
name: Gitea Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call: # This workflow will only be triggered when called by another workflow
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Required for creating releases
|
contents: write # Required for creating releases
|
||||||
@ -66,11 +64,11 @@ jobs:
|
|||||||
echo "EOF" >> $GITHUB_OUTPUT
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
GITEA_API_URL: ${{ secrets.GITEA_API_URL }}
|
GITEA_API_URL: ${{ secrets.GITEA_API_URL }}
|
||||||
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}
|
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}
|
||||||
run: |
|
run: |
|
||||||
# Create release using Gitea API
|
# Create release using Gitea API
|
||||||
RESPONSE=$(curl -X POST \
|
RESPONSE=$(curl -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@ -6,11 +6,12 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
detect-and-run:
|
detect:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
platform: ${{ steps.platform.outputs.platform }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Determine hosting platform
|
- name: Determine hosting platform
|
||||||
id: platform
|
id: platform
|
||||||
@ -21,10 +22,12 @@ jobs:
|
|||||||
echo "platform=gitea" >> $GITHUB_OUTPUT
|
echo "platform=gitea" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run Release Workflow
|
gitea-release:
|
||||||
run: |
|
needs: detect
|
||||||
if [[ "${{ steps.platform.outputs.platform }}" == "github" ]]; then
|
if: needs.detect.outputs.platform == 'gitea'
|
||||||
./.github/workflows/providers/github-release.sh
|
uses: ./.github/workflows/providers/gitea-release.yml
|
||||||
else
|
|
||||||
./.github/workflows/providers/gitea-release.sh
|
github-release:
|
||||||
fi
|
needs: detect
|
||||||
|
if: needs.detect.outputs.platform == 'github'
|
||||||
|
uses: ./.github/workflows/providers/github-release.yml
|
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.2.8] - 2025-02-18
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.8 in platformio.ini; refactor Gitea and GitHub release workflows
|
||||||
|
- update version to 1.2.7 in platformio.ini; adjust Gitea release workflow
|
||||||
|
|
||||||
|
|
||||||
## [1.2.6] - 2025-02-18
|
## [1.2.6] - 2025-02-18
|
||||||
### Added
|
### Added
|
||||||
- update version to 1.2.6 in platformio.ini
|
- update version to 1.2.6 in platformio.ini
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.2.6"
|
version = "1.2.8"
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user