Compare commits

..

2 Commits

4 changed files with 18 additions and 37 deletions

View File

@@ -1,7 +1,9 @@
name: Gitea Release name: Gitea Release
on: on:
workflow_call: # This workflow will only be triggered when called by another workflow push:
tags:
- 'v*'
permissions: permissions:
contents: write # Required for creating releases contents: write # Required for creating releases
@@ -64,11 +66,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}" \

View File

@@ -6,28 +6,27 @@ on:
- 'v*' - 'v*'
jobs: jobs:
detect: detect-and-run:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs:
platform: ${{ steps.platform.outputs.platform }}
steps: steps:
- uses: actions/checkout@v4 - name: Checkout code
uses: actions/checkout@v4
- name: Determine hosting platform - name: Determine hosting platform
id: platform id: platform
run: | run: |
if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then
echo "platform=github" >> $GITHUB_OUTPUT echo "platform=github" >> $GITHUB_OUTPUT
elif [[ "$CI_SERVER_URL" == *"gitlab"* ]]; then
echo "platform=gitlab" >> $GITHUB_OUTPUT
else else
echo "platform=gitea" >> $GITHUB_OUTPUT echo "platform=gitea" >> $GITHUB_OUTPUT
fi fi
gitea-release: - name: Run GitHub Release
needs: detect if: steps.platform.outputs.platform == 'github'
if: needs.detect.outputs.platform == 'gitea' uses: ./.github/workflows/providers/github-release.yml
uses: ./.github/workflows/providers/gitea-release.yml
github-release: - name: Run Gitea Release
needs: detect if: steps.platform.outputs.platform == 'gitea'
if: needs.detect.outputs.platform == 'github' uses: ./.github/workflows/providers/gitea-release.yml
uses: ./.github/workflows/providers/github-release.yml

View File

@@ -1,25 +1,5 @@
# 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
### 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 ## [1.2.4] - 2025-02-18
### Added ### Added
- update version to 1.2.4 in HTML files and platformio.ini - update version to 1.2.4 in HTML files and platformio.ini

View File

@@ -9,7 +9,7 @@
; https://docs.platformio.org/page/projectconf.html ; https://docs.platformio.org/page/projectconf.html
[common] [common]
version = "1.2.8" version = "1.2.4"
[env:esp32dev] [env:esp32dev]
platform = espressif32 platform = espressif32