Compare commits
14 Commits
v1.2.37
...
7ae26fb0a9
Author | SHA1 | Date | |
---|---|---|---|
7ae26fb0a9 | |||
98bcf98f1e | |||
bc8ac32fee | |||
ba74eca21d | |||
d4e1cf1322 | |||
5170784e44 | |||
ac323167d0 | |||
003de5bc00 | |||
83595cfadf | |||
cfe21d63d7 | |||
63e72076ed | |||
2a011ee244 | |||
84dd2bd40b | |||
1449cacc0e |
60
.github/workflows/providers/gitea-release.yml
vendored
60
.github/workflows/providers/gitea-release.yml
vendored
@ -2,6 +2,19 @@ name: Gitea Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
gitea_ref_name:
|
||||||
|
description: 'Gitea ref name'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
gitea_server_url:
|
||||||
|
description: 'Gitea server URL'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
gitea_repository:
|
||||||
|
description: 'Gitea repository'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
GITEA_TOKEN:
|
GITEA_TOKEN:
|
||||||
required: true
|
required: true
|
||||||
@ -13,39 +26,35 @@ jobs:
|
|||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Build Dependencies
|
- name: Install System Dependencies
|
||||||
run: |
|
run: |
|
||||||
# Add PlatformIO repository
|
|
||||||
curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/system/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules
|
|
||||||
|
|
||||||
sudo curl -fsSL -o /etc/apt/trusted.gpg.d/platformio.gpg https://github.com/platformio/platformio-core/releases/download/v6.1.11/platformio-keyring.gpg
|
|
||||||
echo "deb https://github.com/platformio/platformio-core/releases/download/v6.1.11/ any/" | sudo tee /etc/apt/sources.list.d/platformio.list
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y platformio-core python3-pip build-essential
|
sudo apt-get install -y python3 python3-venv build-essential curl git
|
||||||
|
|
||||||
# Install esptool
|
- name: Set up Python Virtual Environment
|
||||||
sudo pip3 install esptool==4.5.1
|
run: |
|
||||||
|
python3 -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install platformio esptool
|
||||||
|
|
||||||
echo "Verifying installations:"
|
echo "Verifying installations:"
|
||||||
pio --version
|
platformio --version
|
||||||
python3 --version
|
python3 --version
|
||||||
esptool.py version
|
esptool.py version
|
||||||
|
|
||||||
- name: Build Firmware
|
- name: Build Firmware
|
||||||
run: |
|
run: |
|
||||||
# Initialize project
|
source venv/bin/activate
|
||||||
pio project init --board esp32dev
|
|
||||||
|
|
||||||
echo "Building SPIFFS..."
|
echo "Building SPIFFS..."
|
||||||
pio run -t buildfs -v
|
platformio run -t buildfs
|
||||||
|
|
||||||
echo "Building firmware..."
|
echo "Building firmware..."
|
||||||
pio run -v
|
platformio run
|
||||||
|
|
||||||
- name: Create Release Files
|
- name: Create Release Files
|
||||||
run: |
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
echo "Creating release files..."
|
echo "Creating release files..."
|
||||||
esptool.py --chip esp32 merge_bin \
|
esptool.py --chip esp32 merge_bin \
|
||||||
--flash_mode dio \
|
--flash_mode dio \
|
||||||
@ -62,16 +71,19 @@ jobs:
|
|||||||
- name: Create Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_REF_NAME: ${{ inputs.gitea_ref_name }}
|
||||||
|
GITEA_SERVER_URL: ${{ inputs.gitea_server_url }}
|
||||||
|
GITEA_REPOSITORY: ${{ inputs.gitea_repository }}
|
||||||
run: |
|
run: |
|
||||||
|
echo "Debug environment:"
|
||||||
|
echo "GITEA_REF_NAME: ${GITEA_REF_NAME}"
|
||||||
|
echo "GITEA_SERVER_URL: ${GITEA_SERVER_URL}"
|
||||||
|
echo "GITEA_REPOSITORY: ${GITEA_REPOSITORY}"
|
||||||
|
|
||||||
TAG="${GITEA_REF_NAME}"
|
TAG="${GITEA_REF_NAME}"
|
||||||
API_URL="${GITEA_SERVER_URL}/api/v1"
|
API_URL="${GITEA_SERVER_URL}/api/v1"
|
||||||
REPO="${GITEA_REPOSITORY}"
|
REPO="${GITEA_REPOSITORY}"
|
||||||
|
|
||||||
echo "Debug environment:"
|
|
||||||
echo "TAG: ${TAG}"
|
|
||||||
echo "API_URL: ${API_URL}"
|
|
||||||
echo "REPO: ${REPO}"
|
|
||||||
|
|
||||||
echo "Creating release for ${TAG} on ${REPO}..."
|
echo "Creating release for ${TAG} on ${REPO}..."
|
||||||
|
|
||||||
# Create release
|
# Create release
|
||||||
@ -84,7 +96,7 @@ jobs:
|
|||||||
|
|
||||||
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | cut -d':' -f2 | head -n1)
|
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | cut -d':' -f2 | head -n1)
|
||||||
|
|
||||||
if [ -n "$RELEASE_ID" ]; then
|
if [ -n "$RELEASE_ID"; then
|
||||||
echo "Release created with ID: $RELEASE_ID"
|
echo "Release created with ID: $RELEASE_ID"
|
||||||
|
|
||||||
# Upload files
|
# Upload files
|
||||||
|
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -10,6 +10,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
provider: ${{ steps.provider.outputs.provider }}
|
provider: ${{ steps.provider.outputs.provider }}
|
||||||
|
gitea_ref_name: ${{ steps.provider.outputs.gitea_ref_name }}
|
||||||
|
gitea_server_url: ${{ steps.provider.outputs.gitea_server_url }}
|
||||||
|
gitea_repository: ${{ steps.provider.outputs.gitea_repository }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -20,6 +23,7 @@ jobs:
|
|||||||
echo "GITHUB_ACTIONS=${GITHUB_ACTIONS:-not set}"
|
echo "GITHUB_ACTIONS=${GITHUB_ACTIONS:-not set}"
|
||||||
echo "GITEA_ACTIONS=${GITEA_ACTIONS:-not set}"
|
echo "GITEA_ACTIONS=${GITEA_ACTIONS:-not set}"
|
||||||
echo "GITEA_REPOSITORY=${GITEA_REPOSITORY:-not set}"
|
echo "GITEA_REPOSITORY=${GITEA_REPOSITORY:-not set}"
|
||||||
|
echo "GITEA_SERVER_URL=${GITEA_SERVER_URL:-not set}"
|
||||||
echo "RUNNER_NAME=${RUNNER_NAME:-not set}"
|
echo "RUNNER_NAME=${RUNNER_NAME:-not set}"
|
||||||
|
|
||||||
- name: Determine CI Provider
|
- name: Determine CI Provider
|
||||||
@ -28,6 +32,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ -n "${GITEA_ACTIONS}" ] || [ -n "${GITEA_REPOSITORY}" ] || [[ "${RUNNER_NAME}" == *"gitea"* ]]; then
|
if [ -n "${GITEA_ACTIONS}" ] || [ -n "${GITEA_REPOSITORY}" ] || [[ "${RUNNER_NAME}" == *"gitea"* ]]; then
|
||||||
echo "provider=gitea" >> "$GITHUB_OUTPUT"
|
echo "provider=gitea" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "gitea_ref_name=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "gitea_server_url=${GITHUB_SERVER_URL}" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "gitea_repository=${GITHUB_REPOSITORY}" >> "$GITHUB_OUTPUT"
|
||||||
elif [ "${GITHUB_ACTIONS}" = "true" ]; then
|
elif [ "${GITHUB_ACTIONS}" = "true" ]; then
|
||||||
echo "provider=github" >> "$GITHUB_OUTPUT"
|
echo "provider=github" >> "$GITHUB_OUTPUT"
|
||||||
else
|
else
|
||||||
@ -55,5 +62,9 @@ jobs:
|
|||||||
needs: [route, verify-provider]
|
needs: [route, verify-provider]
|
||||||
if: needs.route.outputs.provider == 'gitea'
|
if: needs.route.outputs.provider == 'gitea'
|
||||||
uses: ./.github/workflows/providers/gitea-release.yml
|
uses: ./.github/workflows/providers/gitea-release.yml
|
||||||
|
with:
|
||||||
|
gitea_ref_name: ${{ needs.route.outputs.gitea_ref_name }}
|
||||||
|
gitea_server_url: ${{ needs.route.outputs.gitea_server_url }}
|
||||||
|
gitea_repository: ${{ needs.route.outputs.gitea_repository }}
|
||||||
secrets:
|
secrets:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
35
CHANGELOG.md
35
CHANGELOG.md
@ -1,5 +1,40 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.2.44] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update Gitea release workflow to include additional outputs and increment version to 1.2.44
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.43] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update Gitea release workflow by removing unnecessary outputs and increment version to 1.2.43
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.42] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update Gitea release workflow to include additional outputs and increment version to 1.2.42
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.41] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update Gitea release workflow debug output and increment version to 1.2.41
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.40] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- add inputs for Gitea release workflow and increment version to 1.2.40
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.39] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update Gitea release workflow to use Python virtual environment and increment version to 1.2.39
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.38] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update Gitea release workflow and increment version to 1.2.38
|
||||||
|
|
||||||
|
|
||||||
## [1.2.37] - 2025-02-19
|
## [1.2.37] - 2025-02-19
|
||||||
### Added
|
### Added
|
||||||
- update Gitea release workflow and increment version to 1.2.37
|
- update Gitea release workflow and increment version to 1.2.37
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.2.37"
|
version = "1.2.44"
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
Reference in New Issue
Block a user