Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
5d39f04786 | |||
d955e26b82 | |||
c20e7de5c3 | |||
55c3b3688a |
26
.github/workflows/providers/gitea-release.yml
vendored
26
.github/workflows/providers/gitea-release.yml
vendored
@ -11,15 +11,13 @@ on:
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
contents: write # Required for creating releases
|
||||
issues: read # Required for reading changelog
|
||||
pull-requests: read # Required for reading changelog
|
||||
contents: write
|
||||
issues: read
|
||||
pull-requests: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@ -74,21 +72,13 @@ jobs:
|
||||
fi
|
||||
|
||||
echo "Creating Gitea release..."
|
||||
release_data="{\"tag_name\":\"${{ github.ref_name }}\",\"name\":\"Release ${{ inputs.version }}\",\"body\":${{ toJSON(inputs.changelog) }},\"draft\":false,\"prerelease\":false}"
|
||||
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 ${{ inputs.version }}",
|
||||
"body": ${{ toJSON(inputs.changelog) }},
|
||||
"draft": false,
|
||||
"prerelease": false
|
||||
}
|
||||
EOF
|
||||
)
|
||||
-d "$release_data")
|
||||
|
||||
# Extract and validate release ID
|
||||
RELEASE_ID=$(echo "$RESPONSE" | jq -r .id)
|
||||
@ -111,8 +101,4 @@ EOF
|
||||
exit 1
|
||||
fi
|
||||
echo "Successfully uploaded $file"
|
||||
done
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
done
|
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
## [1.2.16] - 2025-02-19
|
||||
### Added
|
||||
- update Gitea release workflow and increment version to 1.2.16
|
||||
|
||||
|
||||
## [1.2.15] - 2025-02-19
|
||||
### Added
|
||||
- update version to 1.2.15 and clean up Gitea release workflow
|
||||
|
||||
|
||||
## [1.2.14] - 2025-02-19
|
||||
### Added
|
||||
- update version to 1.2.14 and refactor release workflows for improved GitHub and Gitea support
|
||||
|
@ -9,7 +9,7 @@
|
||||
; https://docs.platformio.org/page/projectconf.html
|
||||
|
||||
[common]
|
||||
version = "1.2.14"
|
||||
version = "1.2.16"
|
||||
|
||||
[env:esp32dev]
|
||||
platform = espressif32
|
||||
|
Reference in New Issue
Block a user