Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
58549a53e4 | |||
64a46e3e7d | |||
c2bd0982ab | |||
e0b8da079e | |||
8c88827a2d | |||
6128bc2827 | |||
6d21a8ec52 | |||
2ee4eca7dd | |||
9eb64e06f0 | |||
693ef4e26c | |||
11c099eba2 | |||
c7c122a505 | |||
d1bb4b7c83 | |||
dc5118587c | |||
b13f2c4eee | |||
6d16c35e62 | |||
c94ebf5e33 | |||
9203706a20 |
118
.github/workflows/providers/gitea-release.yml
vendored
118
.github/workflows/providers/gitea-release.yml
vendored
@ -1,9 +1,14 @@
|
|||||||
name: Gitea Release
|
name: Gitea Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
tags:
|
inputs:
|
||||||
- 'v*'
|
version:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
changelog:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Required for creating releases
|
contents: write # Required for creating releases
|
||||||
@ -23,19 +28,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install PlatformIO
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio esptool
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y jq
|
||||||
|
|
||||||
- name: Build Firmware
|
- name: Build Firmware
|
||||||
run: |
|
run: |
|
||||||
pio run -t buildfs # Build SPIFFS
|
pio run -t buildfs
|
||||||
pio run # Build firmware
|
pio run
|
||||||
|
|
||||||
- name: Install esptool
|
|
||||||
run: |
|
|
||||||
pip install esptool
|
|
||||||
|
|
||||||
- name: Merge firmware and SPIFFS
|
- name: Merge firmware and SPIFFS
|
||||||
run: |
|
run: |
|
||||||
@ -50,53 +53,66 @@ jobs:
|
|||||||
0x290000 .pio/build/esp32dev/spiffs.bin
|
0x290000 .pio/build/esp32dev/spiffs.bin
|
||||||
|
|
||||||
- name: Prepare OTA firmware
|
- name: Prepare OTA firmware
|
||||||
run: |
|
run: cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
||||||
cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
|
||||||
|
|
||||||
- name: Get version from tag
|
|
||||||
id: get_version
|
|
||||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Read CHANGELOG.md
|
|
||||||
id: changelog
|
|
||||||
run: |
|
|
||||||
CHANGELOG=$(awk "/## \\[${{ steps.get_version.outputs.VERSION }}\\]/{p=1;print;next} /## \\[/{p=0} p" CHANGELOG.md)
|
|
||||||
echo "CHANGES<<EOF" >> $GITHUB_OUTPUT
|
|
||||||
echo "$CHANGELOG" >> $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 }}
|
||||||
run: |
|
run: |
|
||||||
# Create release using Gitea API
|
# Validate and sanitize API URL
|
||||||
RESPONSE=$(curl -X POST \
|
if [[ ! "$GITEA_API_URL" =~ ^https?:// ]]; then
|
||||||
|
echo "Error: GITEA_API_URL must start with http:// or https://"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove trailing slash and ensure /api/v1
|
||||||
|
GITEA_API_URL="${GITEA_API_URL%/}"
|
||||||
|
if [[ ! "$GITEA_API_URL" =~ /api/v1$ ]]; then
|
||||||
|
GITEA_API_URL="${GITEA_API_URL}/api/v1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Creating Gitea release..."
|
||||||
|
RESPONSE=$(curl -sS -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "accept: application/json" \
|
-H "Accept: application/json" \
|
||||||
${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases \
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases" \
|
||||||
-d '{
|
-d @- << EOF
|
||||||
"tag_name": "${{ github.ref_name }}",
|
{
|
||||||
"name": "Release ${{ steps.get_version.outputs.VERSION }}",
|
"tag_name": "${{ github.ref_name }}",
|
||||||
"body": "${{ steps.changelog.outputs.CHANGES }}",
|
"name": "Release ${{ inputs.version }}",
|
||||||
"draft": false,
|
"body": ${{ toJSON(inputs.changelog) }},
|
||||||
"prerelease": false
|
"draft": false,
|
||||||
}')
|
"prerelease": false
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
# Extract release ID from response
|
# Extract and validate release ID
|
||||||
RELEASE_ID=$(echo $RESPONSE | jq -r .id)
|
RELEASE_ID=$(echo "$RESPONSE" | jq -r .id)
|
||||||
|
if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then
|
||||||
|
echo "Error: Failed to get release ID"
|
||||||
|
echo "API Response:"
|
||||||
|
echo "$RESPONSE" | jq .
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Upload full firmware
|
# Upload binary files
|
||||||
curl -X POST \
|
for file in "filaman_full.bin" "filaman_ota.bin"; do
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
echo "Uploading $file..."
|
||||||
-H "Content-Type: application/octet-stream" \
|
if ! curl -sS -X POST \
|
||||||
${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_full.bin \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
--data-binary @.pio/build/esp32dev/filaman_full.bin
|
-H "Content-Type: application/octet-stream" \
|
||||||
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${file}" \
|
||||||
# Upload OTA firmware
|
--data-binary "@.pio/build/esp32dev/${file}"; then
|
||||||
curl -X POST \
|
echo "Error: Failed to upload $file"
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
exit 1
|
||||||
-H "Content-Type: application/octet-stream" \
|
fi
|
||||||
${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_ota.bin \
|
echo "Successfully uploaded $file"
|
||||||
--data-binary @.pio/build/esp32dev/filaman_ota.bin
|
done
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
51
.github/workflows/providers/github-release.yml
vendored
51
.github/workflows/providers/github-release.yml
vendored
@ -1,9 +1,14 @@
|
|||||||
name: GitHub Release
|
name: GitHub Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_call:
|
||||||
tags:
|
inputs:
|
||||||
- 'v*'
|
version:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
changelog:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Required for creating releases
|
contents: write # Required for creating releases
|
||||||
@ -23,20 +28,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Install PlatformIO
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install --upgrade platformio
|
pip install --upgrade platformio esptool
|
||||||
|
|
||||||
- name: Build Firmware
|
- name: Build Firmware
|
||||||
run: |
|
run: |
|
||||||
pio run -t buildfs # Build SPIFFS
|
pio run -t buildfs # Build SPIFFS
|
||||||
pio run # Build firmware
|
pio run # Build firmware
|
||||||
|
|
||||||
- name: Install esptool
|
|
||||||
run: |
|
|
||||||
pip install esptool
|
|
||||||
|
|
||||||
- name: Merge firmware and SPIFFS
|
- name: Merge firmware and SPIFFS
|
||||||
run: |
|
run: |
|
||||||
esptool.py --chip esp32 merge_bin \
|
esptool.py --chip esp32 merge_bin \
|
||||||
@ -50,36 +51,14 @@ jobs:
|
|||||||
0x290000 .pio/build/esp32dev/spiffs.bin
|
0x290000 .pio/build/esp32dev/spiffs.bin
|
||||||
|
|
||||||
- name: Prepare OTA firmware
|
- name: Prepare OTA firmware
|
||||||
run: |
|
run: cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
||||||
# Use PlatformIO to create a proper OTA image
|
|
||||||
cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
|
||||||
|
|
||||||
- name: Get version from tag
|
- name: Create Release
|
||||||
id: get_version
|
|
||||||
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Read CHANGELOG.md
|
|
||||||
id: changelog
|
|
||||||
run: |
|
|
||||||
CHANGELOG=$(awk "/## \\[${{ steps.get_version.outputs.VERSION }}\\]/{p=1;print;next} /## \\[/{p=0} p" CHANGELOG.md)
|
|
||||||
echo "CHANGES<<EOF" >> $GITHUB_OUTPUT
|
|
||||||
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
|
||||||
echo "EOF" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Install and Configure GitHub CLI
|
|
||||||
run: |
|
|
||||||
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
|
|
||||||
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
|
|
||||||
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
|
|
||||||
&& sudo apt update \
|
|
||||||
&& sudo apt install gh -y
|
|
||||||
|
|
||||||
- name: Create Release with GitHub CLI
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
gh release create "${{ github.ref_name }}" \
|
gh release create "${{ github.ref_name }}" \
|
||||||
--title "Release ${{ steps.get_version.outputs.VERSION }}" \
|
--title "Release ${{ inputs.version }}" \
|
||||||
--notes "${{ steps.changelog.outputs.CHANGES }}" \
|
--notes "${{ inputs.changelog }}" \
|
||||||
".pio/build/esp32dev/filaman_full.bin#filaman_full.bin" \
|
".pio/build/esp32dev/filaman_full.bin#filaman_full.bin" \
|
||||||
".pio/build/esp32dev/filaman_ota.bin#filaman_ota.bin"
|
".pio/build/esp32dev/filaman_ota.bin#filaman_ota.bin"
|
138
.github/workflows/release.yml
vendored
138
.github/workflows/release.yml
vendored
@ -6,27 +6,131 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
detect-and-run:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Determine hosting platform
|
- name: Set up Python
|
||||||
id: platform
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.x'
|
||||||
|
|
||||||
|
- name: Get version from tag
|
||||||
|
id: get_version
|
||||||
|
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Verify version match
|
||||||
run: |
|
run: |
|
||||||
if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then
|
PIO_VERSION=$(grep '^version = ' platformio.ini | cut -d'"' -f2)
|
||||||
echo "platform=github" >> $GITHUB_OUTPUT
|
TAG_VERSION=${{ steps.get_version.outputs.VERSION }}
|
||||||
elif [[ "$CI_SERVER_URL" == *"gitlab"* ]]; then
|
|
||||||
echo "platform=gitlab" >> $GITHUB_OUTPUT
|
if [ "$PIO_VERSION" != "$TAG_VERSION" ]; then
|
||||||
else
|
echo "Error: Version mismatch between tag ($TAG_VERSION) and platformio.ini ($PIO_VERSION)"
|
||||||
echo "platform=gitea" >> $GITHUB_OUTPUT
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run GitHub Release
|
- name: Read CHANGELOG.md
|
||||||
if: steps.platform.outputs.platform == 'github'
|
id: changelog
|
||||||
uses: ./.github/workflows/providers/github-release.yml
|
run: |
|
||||||
|
CHANGELOG=$(awk "/## \\[${{ steps.get_version.outputs.VERSION }}\\]/{p=1;print;next} /## \\[/{p=0} p" CHANGELOG.md)
|
||||||
|
echo "CHANGES<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
echo "$CHANGELOG" >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Run Gitea Release
|
- name: Install dependencies
|
||||||
if: steps.platform.outputs.platform == 'gitea'
|
run: |
|
||||||
uses: ./.github/workflows/providers/gitea-release.yml
|
python -m pip install --upgrade pip
|
||||||
|
pip install --upgrade platformio esptool
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y jq gh
|
||||||
|
|
||||||
|
- name: Build Firmware
|
||||||
|
run: |
|
||||||
|
pio run -t buildfs
|
||||||
|
pio run
|
||||||
|
|
||||||
|
- name: Merge firmware and SPIFFS
|
||||||
|
run: |
|
||||||
|
esptool.py --chip esp32 merge_bin \
|
||||||
|
--flash_mode dio \
|
||||||
|
--flash_freq 40m \
|
||||||
|
--flash_size 4MB \
|
||||||
|
-o .pio/build/esp32dev/filaman_full.bin \
|
||||||
|
0x1000 .pio/build/esp32dev/bootloader.bin \
|
||||||
|
0x8000 .pio/build/esp32dev/partitions.bin \
|
||||||
|
0x10000 .pio/build/esp32dev/firmware.bin \
|
||||||
|
0x290000 .pio/build/esp32dev/spiffs.bin
|
||||||
|
|
||||||
|
- name: Prepare OTA firmware
|
||||||
|
run: cp .pio/build/esp32dev/firmware.bin .pio/build/esp32dev/filaman_ota.bin
|
||||||
|
|
||||||
|
- name: Create GitHub Release
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
gh release create "${{ github.ref_name }}" \
|
||||||
|
--title "Release ${{ steps.get_version.outputs.VERSION }}" \
|
||||||
|
--notes "${{ steps.changelog.outputs.CHANGES }}" \
|
||||||
|
".pio/build/esp32dev/filaman_full.bin#filaman_full.bin" \
|
||||||
|
".pio/build/esp32dev/filaman_ota.bin#filaman_ota.bin"
|
||||||
|
|
||||||
|
- name: Create Gitea Release
|
||||||
|
if: github.server_url != 'https://github.com'
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
GITEA_API_URL: ${{ secrets.GITEA_API_URL }}
|
||||||
|
GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }}
|
||||||
|
run: |
|
||||||
|
# Validate and sanitize API URL
|
||||||
|
if [[ ! "$GITEA_API_URL" =~ ^https?:// ]]; then
|
||||||
|
echo "Error: GITEA_API_URL must start with http:// or https://"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Remove trailing slash and ensure /api/v1
|
||||||
|
GITEA_API_URL="${GITEA_API_URL%/}"
|
||||||
|
if [[ ! "$GITEA_API_URL" =~ /api/v1$ ]]; then
|
||||||
|
GITEA_API_URL="${GITEA_API_URL}/api/v1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Creating Gitea release..."
|
||||||
|
RESPONSE=$(curl -sS -X POST \
|
||||||
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "Accept: application/json" \
|
||||||
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases" \
|
||||||
|
-d @- << EOF
|
||||||
|
{
|
||||||
|
"tag_name": "${{ github.ref_name }}",
|
||||||
|
"name": "Release ${{ steps.get_version.outputs.VERSION }}",
|
||||||
|
"body": $(echo "${{ steps.changelog.outputs.CHANGES }}" | jq -R -s .),
|
||||||
|
"draft": false,
|
||||||
|
"prerelease": false
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
# Extract and validate release ID
|
||||||
|
RELEASE_ID=$(echo "$RESPONSE" | jq -r .id)
|
||||||
|
if [ -z "$RELEASE_ID" ] || [ "$RELEASE_ID" = "null" ]; then
|
||||||
|
echo "Error: Failed to get release ID"
|
||||||
|
echo "API Response:"
|
||||||
|
echo "$RESPONSE" | jq .
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Upload binary files
|
||||||
|
for file in "filaman_full.bin" "filaman_ota.bin"; do
|
||||||
|
echo "Uploading $file..."
|
||||||
|
if ! curl -sS -X POST \
|
||||||
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
-H "Content-Type: application/octet-stream" \
|
||||||
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${file}" \
|
||||||
|
--data-binary "@.pio/build/esp32dev/${file}"; then
|
||||||
|
echo "Error: Failed to upload $file"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "Successfully uploaded $file"
|
||||||
|
done
|
46
CHANGELOG.md
46
CHANGELOG.md
@ -1,5 +1,51 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [1.2.13] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.13 and enhance release workflow with Python setup and Gitea support
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.12] - 2025-02-19
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.12 and refactor release workflows for improved provider detection and execution
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.11] - 2025-02-18
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.11 and enhance GitHub and Gitea release workflows with input validation and improved error handling
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.10] - 2025-02-18
|
||||||
|
### Added
|
||||||
|
- enhance Gitea release workflow with API connection verification and URL validation; update version to 1.2.10
|
||||||
|
|
||||||
|
|
||||||
|
## [1.2.9] - 2025-02-18
|
||||||
|
### Added
|
||||||
|
- update version to 1.2.9 in platformio.ini
|
||||||
|
- refactor GitHub and Gitea release workflows for improved version handling and firmware uploads
|
||||||
|
|
||||||
|
|
||||||
|
## [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
|
||||||
|
18
README.md
18
README.md
@ -124,6 +124,24 @@ german explanatory video: [Youtube](https://youtu.be/uNDe2wh9SS8?si=b-jYx4I1w62z
|
|||||||
- Configure WiFi settings through the captive portal.
|
- Configure WiFi settings through the captive portal.
|
||||||
- Access the web interface at `http://filaman.local` or the IP address.
|
- Access the web interface at `http://filaman.local` or the IP address.
|
||||||
|
|
||||||
|
## GitHub Actions Configuration
|
||||||
|
|
||||||
|
### Required Secrets for Gitea Releases
|
||||||
|
|
||||||
|
When using Gitea as your repository host, you need to configure the following secrets in your repository:
|
||||||
|
|
||||||
|
- `GITEA_API_URL`: The base URL of your Gitea instance, including protocol (e.g., `https://git.example.com`)
|
||||||
|
- `GITEA_TOKEN`: Your Gitea access token with permissions to create releases
|
||||||
|
- `GITEA_REPOSITORY`: The repository name in format `owner/repo` (e.g., `username/filaman`)
|
||||||
|
|
||||||
|
Example values:
|
||||||
|
```
|
||||||
|
GITEA_API_URL=https://git.example.com
|
||||||
|
GITEA_TOKEN=abcdef1234567890
|
||||||
|
GITEA_REPOSITORY=username/filaman
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure to set these secrets in your repository settings under Settings > Secrets and Variables > Actions.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.2.4"
|
version = "1.2.13"
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
Reference in New Issue
Block a user