Compare commits
2 Commits
v1.2.8
...
920e4cfb69
Author | SHA1 | Date | |
---|---|---|---|
920e4cfb69 | |||
e646edd6f4 |
@@ -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,28 +6,27 @@ 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: |
|
||||
if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then
|
||||
echo "platform=github" >> $GITHUB_OUTPUT
|
||||
elif [[ "$CI_SERVER_URL" == *"gitlab"* ]]; then
|
||||
echo "platform=gitlab" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "platform=gitea" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
gitea-release:
|
||||
needs: detect
|
||||
if: needs.detect.outputs.platform == 'gitea'
|
||||
uses: ./.github/workflows/providers/gitea-release.yml
|
||||
- name: Run GitHub Release
|
||||
if: steps.platform.outputs.platform == 'github'
|
||||
uses: ./.github/workflows/providers/github-release.yml
|
||||
|
||||
github-release:
|
||||
needs: detect
|
||||
if: needs.detect.outputs.platform == 'github'
|
||||
uses: ./.github/workflows/providers/github-release.yml
|
||||
- name: Run Gitea Release
|
||||
if: steps.platform.outputs.platform == 'gitea'
|
||||
uses: ./.github/workflows/providers/gitea-release.yml
|
20
CHANGELOG.md
20
CHANGELOG.md
@@ -1,25 +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
|
||||
- update version to 1.2.5; enhance Gitea release workflow and streamline release process
|
||||
|
||||
### Changed
|
||||
- update changelog for version 1.2.5
|
||||
|
||||
|
||||
## [1.2.5] - 2025-02-18
|
||||
### Added
|
||||
- update version to 1.2.5; enhance Gitea release workflow and streamline release process
|
||||
|
||||
|
||||
## [1.2.4] - 2025-02-18
|
||||
### Added
|
||||
- update version to 1.2.4 in HTML files and platformio.ini
|
||||
|
@@ -9,7 +9,7 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[common]
|
||||
version = "1.2.8"
|
||||
version = "1.2.4"
|
||||
|
||||
[env:esp32dev]
|
||||
platform = espressif32
|
||||
|
Reference in New Issue
Block a user