Compare commits
2 Commits
c94ebf5e33
...
920e4cfb69
Author | SHA1 | Date | |
---|---|---|---|
920e4cfb69 | |||
e646edd6f4 |
@ -69,13 +69,14 @@ jobs:
|
|||||||
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
|
# Create release using Gitea API
|
||||||
RESPONSE=$(curl -X POST \
|
RESPONSE=$(curl -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 '{
|
||||||
"tag_name": "${{ github.ref_name }}",
|
"tag_name": "${{ github.ref_name }}",
|
||||||
"name": "Release ${{ steps.get_version.outputs.VERSION }}",
|
"name": "Release ${{ steps.get_version.outputs.VERSION }}",
|
||||||
@ -91,12 +92,12 @@ jobs:
|
|||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_full.bin \
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_full.bin" \
|
||||||
--data-binary @.pio/build/esp32dev/filaman_full.bin
|
--data-binary @.pio/build/esp32dev/filaman_full.bin
|
||||||
|
|
||||||
# Upload OTA firmware
|
# Upload OTA firmware
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_ota.bin \
|
"${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_ota.bin" \
|
||||||
--data-binary @.pio/build/esp32dev/filaman_ota.bin
|
--data-binary @.pio/build/esp32dev/filaman_ota.bin
|
Loading…
x
Reference in New Issue
Block a user