Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
83595cfadf | |||
cfe21d63d7 | |||
63e72076ed | |||
2a011ee244 | |||
84dd2bd40b | |||
1449cacc0e |
50
.github/workflows/providers/gitea-release.yml
vendored
50
.github/workflows/providers/gitea-release.yml
vendored
@ -2,6 +2,19 @@ name: Gitea Release
|
||||
|
||||
on:
|
||||
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:
|
||||
GITEA_TOKEN:
|
||||
required: true
|
||||
@ -13,39 +26,35 @@ jobs:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Build Dependencies
|
||||
- name: Install System Dependencies
|
||||
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 install -y platformio-core python3-pip build-essential
|
||||
|
||||
# Install esptool
|
||||
sudo pip3 install esptool==4.5.1
|
||||
sudo apt-get install -y python3 python3-venv build-essential curl git
|
||||
|
||||
- name: Set up Python Virtual Environment
|
||||
run: |
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install platformio esptool
|
||||
|
||||
echo "Verifying installations:"
|
||||
pio --version
|
||||
platformio --version
|
||||
python3 --version
|
||||
esptool.py version
|
||||
|
||||
- name: Build Firmware
|
||||
run: |
|
||||
# Initialize project
|
||||
pio project init --board esp32dev
|
||||
|
||||
source venv/bin/activate
|
||||
echo "Building SPIFFS..."
|
||||
pio run -t buildfs -v
|
||||
platformio run -t buildfs
|
||||
|
||||
echo "Building firmware..."
|
||||
pio run -v
|
||||
platformio run
|
||||
|
||||
- name: Create Release Files
|
||||
run: |
|
||||
source venv/bin/activate
|
||||
echo "Creating release files..."
|
||||
esptool.py --chip esp32 merge_bin \
|
||||
--flash_mode dio \
|
||||
@ -62,6 +71,9 @@ jobs:
|
||||
- name: Create Release
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_REF_NAME: ${{ inputs.gitea_ref_name }}
|
||||
GITEA_SERVER_URL: ${{ inputs.gitea_server_url }}
|
||||
GITEA_REPOSITORY: ${{ inputs.gitea_repository }}
|
||||
run: |
|
||||
TAG="${GITEA_REF_NAME}"
|
||||
API_URL="${GITEA_SERVER_URL}/api/v1"
|
||||
@ -84,7 +96,7 @@ jobs:
|
||||
|
||||
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"
|
||||
|
||||
# Upload files
|
||||
|
15
CHANGELOG.md
15
CHANGELOG.md
@ -1,5 +1,20 @@
|
||||
# Changelog
|
||||
|
||||
## [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
|
||||
### Added
|
||||
- update Gitea release workflow and increment version to 1.2.37
|
||||
|
@ -9,7 +9,7 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[common]
|
||||
version = "1.2.37"
|
||||
version = "1.2.40"
|
||||
|
||||
[env:esp32dev]
|
||||
platform = espressif32
|
||||
|
Reference in New Issue
Block a user