feat: update Gitea release workflow and increment version to 1.2.16
This commit is contained in:
parent
c20e7de5c3
commit
d955e26b82
20
.github/workflows/providers/gitea-release.yml
vendored
20
.github/workflows/providers/gitea-release.yml
vendored
@ -11,15 +11,13 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # Required for creating releases
|
contents: write
|
||||||
issues: read # Required for reading changelog
|
issues: read
|
||||||
pull-requests: read # Required for reading changelog
|
pull-requests: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@ -74,21 +72,13 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Creating Gitea release..."
|
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 \
|
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/${GITEA_REPOSITORY}/releases" \
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases" \
|
||||||
-d @- << EOF
|
-d "$release_data")
|
||||||
{
|
|
||||||
"tag_name": "${{ github.ref_name }}",
|
|
||||||
"name": "Release ${{ inputs.version }}",
|
|
||||||
"body": ${{ toJSON(inputs.changelog) }},
|
|
||||||
"draft": false,
|
|
||||||
"prerelease": false
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
)
|
|
||||||
|
|
||||||
# Extract and validate release ID
|
# Extract and validate release ID
|
||||||
RELEASE_ID=$(echo "$RESPONSE" | jq -r .id)
|
RELEASE_ID=$(echo "$RESPONSE" | jq -r .id)
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
version = "1.2.15"
|
version = "1.2.16"
|
||||||
|
|
||||||
[env:esp32dev]
|
[env:esp32dev]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user