Compare commits
	
		
			4 Commits
		
	
	
		
			v1.2.4
			...
			b13f2c4eee
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| b13f2c4eee | |||
| 6d16c35e62 | |||
| c94ebf5e33 | |||
| 9203706a20 | 
							
								
								
									
										33
									
								
								.github/workflows/providers/gitea-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/providers/gitea-release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -66,37 +66,38 @@ jobs: | |||||||
|         echo "EOF" >> $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 }} | ||||||
|       run: | |         GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }} | ||||||
|  |     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 }}", | ||||||
|             "body": "${{ steps.changelog.outputs.CHANGES }}", |             "body": "${{ steps.changelog.outputs.CHANGES }}", | ||||||
|             "draft": false, |             "draft": false, | ||||||
|             "prerelease": false |             "prerelease": false | ||||||
|           }') |         }') | ||||||
|          |          | ||||||
|         # Extract release ID from response |         # Extract release ID from response | ||||||
|         RELEASE_ID=$(echo $RESPONSE | jq -r .id) |         RELEASE_ID=$(echo $RESPONSE | jq -r .id) | ||||||
|          |          | ||||||
|         # Upload full firmware |         # Upload full 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_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 | ||||||
							
								
								
									
										16
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -17,16 +17,14 @@ jobs: | |||||||
|         run: | |         run: | | ||||||
|           if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then |           if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then | ||||||
|             echo "platform=github" >> $GITHUB_OUTPUT |             echo "platform=github" >> $GITHUB_OUTPUT | ||||||
|           elif [[ "$CI_SERVER_URL" == *"gitlab"* ]]; then |  | ||||||
|             echo "platform=gitlab" >> $GITHUB_OUTPUT |  | ||||||
|           else |           else | ||||||
|             echo "platform=gitea" >> $GITHUB_OUTPUT |             echo "platform=gitea" >> $GITHUB_OUTPUT | ||||||
|           fi |           fi | ||||||
|  |  | ||||||
|       - name: Run GitHub Release |       - name: Run Release Workflow | ||||||
|         if: steps.platform.outputs.platform == 'github' |         run: | | ||||||
|         uses: ./.github/workflows/providers/github-release.yml |           if [[ "${{ steps.platform.outputs.platform }}" == "github" ]]; then | ||||||
|  |             ./.github/workflows/providers/github-release.sh | ||||||
|       - name: Run Gitea Release |           else | ||||||
|         if: steps.platform.outputs.platform == 'gitea' |             ./.github/workflows/providers/gitea-release.sh | ||||||
|         uses: ./.github/workflows/providers/gitea-release.yml |           fi | ||||||
							
								
								
									
										14
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,5 +1,19 @@ | |||||||
| # Changelog | # Changelog | ||||||
|  |  | ||||||
|  | ## [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 | ||||||
|   | |||||||
| @@ -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.6" | ||||||
|  |  | ||||||
| [env:esp32dev] | [env:esp32dev] | ||||||
| platform = espressif32 | platform = espressif32 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user