Skip to content

Commit 7d2b3fa

Browse files
committed
Release notes
1 parent 808fddf commit 7d2b3fa

12 files changed

Lines changed: 70 additions & 46 deletions

File tree

.github/gfx/dash1.png

217 KB
Loading

.github/gfx/dash2.png

222 KB
Loading

.github/gfx/dash3.png

213 KB
Loading

.github/gfx/gov.png

-23.8 KB
Binary file not shown.

.github/gfx/home.png

-26.3 KB
Binary file not shown.

.github/gfx/logs.png

-29.8 KB
Binary file not shown.

.github/gfx/status.png

-23.8 KB
Binary file not shown.

.github/workflows/push.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@ jobs:
1919
SHORT_SHA=$(echo "${GITHUB_SHA}" | cut -c1-7)
2020
echo "GIT_VER=commit-${SHORT_SHA}" >> $GITHUB_ENV
2121
22-
- name: Update version and config in main.lua
23-
run: |
24-
# Use GIT_VER set in previous step
25-
sed -i 's/\(config.version = {[^}]*suffix = \)"[^"]*"/\1"${{ env.GIT_VER }}"/' scripts/inav-dashboard/main.lua
26-
27-
# Set logging settings
28-
sed -i 's/\(config.logLevel= \)".*"/\1"off"/' scripts/inav-dashboard/main.lua
29-
sed -i 's/\(config.logToFile = \)[^ ]*/\1false/' scripts/inav-dashboard/main.lua
30-
sed -i 's/\(config.logMSP = \)[^ ]*/\1false/' scripts/inav-dashboard/main.lua
31-
32-
# Show updated file (for verification)
33-
grep 'config\.' scripts/inav-dashboard/main.lua
34-
3522
- name: Create inav-dashboard-ethos-commit-<short_sha>.zip (entire scripts folder)
3623
run: |
3724
zip -q -r -9 "inav-dashboard-ethos-${{ env.GIT_VER }}.zip" scripts

.github/workflows/release.yml

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- 'release/*'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912

1013
build:
@@ -15,46 +18,32 @@ jobs:
1518
- name: Check out repository
1619
uses: actions/checkout@v4
1720

18-
- name: Set build variables
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.11'
25+
26+
- name: Set build variables (from tag)
27+
id: buildvars
28+
shell: bash
1929
run: |
20-
GIT_VER=${GITHUB_REF##*/}
21-
GIT_TAG=${GITHUB_REF##refs/tags/}
22-
if [[ ${GIT_VER} =~ ^[0-9]+[.][0-9]+[.][0-9]+[-][A-Za-z0-9]+ ]]
23-
then
30+
GIT_TAG="${GITHUB_REF_NAME}"
31+
GIT_VER="${GIT_TAG#release/}"
32+
if [[ $GIT_VER =~ ^[0-9]+\.[0-9]+\.[0-9]+-[A-Za-z0-9]+$ ]]; then
2433
GH_TYPE='Release Candidate'
2534
else
2635
GH_TYPE='Release'
2736
fi
28-
echo "GIT_VER=${GIT_VER}" >> ${GITHUB_ENV}
29-
echo "GIT_TAG=${GIT_TAG}" >> ${GITHUB_ENV}
30-
echo "GH_TYPE=${GH_TYPE}" >> ${GITHUB_ENV}
31-
cat ${GITHUB_ENV}
32-
33-
- name: Inject version info into main.lua
34-
run: |
35-
# Parse GIT_VER into components
36-
IFS='.-' read -r MAJOR MINOR REVISION SUFFIX <<< "${{ env.GIT_VER }}"
37-
38-
echo "Parsed version: $MAJOR $MINOR $REVISION $SUFFIX"
39-
40-
# Update full config.version line
41-
sed -i "s/config.version = {.*}/config.version = {major = $MAJOR, minor = $MINOR, revision = $REVISION, suffix = \"$SUFFIX\"}/" scripts/inav-dashboard/main.lua
42-
43-
# Set logging settings
44-
sed -i 's/\(config.logLevel= \)".*"/\1"off"/' scripts/inav-dashboard/main.lua
45-
sed -i 's/\(config.logToFile = \)[^ ]*/\1false/' scripts/inav-dashboard/main.lua
46-
sed -i 's/\(config.logMSP = \)[^ ]*/\1false/' scripts/inav-dashboard/main.lua
47-
48-
# Output for verification
49-
grep 'config.version' scripts/inav-dashboard/main.lua
50-
grep 'config.log' scripts/inav-dashboard/main.lua
37+
echo "GIT_VER=$GIT_VER" >> $GITHUB_ENV
38+
echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
39+
echo "GH_TYPE=$GH_TYPE" >> $GITHUB_ENV
5140
5241
- name: Make release package
5342
run: zip -q -r -9 "inav-dashboard-ethos-${{ env.GIT_VER }}.zip" scripts
5443

5544
- name: Create Release
5645
run: |
57-
.github/scripts/extract-release-notes.py "${{ env.GIT_VER }}" Releases.md > Notes.md
46+
python .github/scripts/extract-release-notes.py "${{ env.GIT_VER }}" Releases.md > Notes.md
5847
gh release create ${{ env.GIT_TAG }} --notes-file Notes.md --title "Inav Dashboard for Ethos - ${{ env.GH_TYPE }} ${{ env.GIT_VER }}" *.zip
5948
env:
6049
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
- name: Create Snapshot
2828
run: |
29-
.github/scripts/extract-release-notes.py "${{ env.GIT_VER }}" Releases.md > Notes.md
29+
python.github/scripts/extract-release-notes.py "${{ env.GIT_VER }}" Releases.md > Notes.md
3030
gh release create ${{ env.GIT_TAG }} --prerelease --notes-file Notes.md --title "Inav Dashboard for Ethos - Snapshot ${{ env.GIT_VER }}" *.zip
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)