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