Compare commits
	
		
			7 Commits
		
	
	
		
			v1.2.4
			...
			c7c122a505
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| c7c122a505 | |||
| d1bb4b7c83 | |||
| dc5118587c | |||
| b13f2c4eee | |||
| 6d16c35e62 | |||
| c94ebf5e33 | |||
| 9203706a20 | 
							
								
								
									
										33
									
								
								.github/workflows/providers/gitea-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								.github/workflows/providers/gitea-release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,9 +1,7 @@ | ||||
| name: Gitea Release | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     tags: | ||||
|       - 'v*' | ||||
|   workflow_call:  # This workflow will only be triggered when called by another workflow | ||||
|  | ||||
| permissions: | ||||
|   contents: write      # Required for creating releases | ||||
| @@ -69,34 +67,35 @@ jobs: | ||||
|       env: | ||||
|         GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} | ||||
|         GITEA_API_URL: ${{ secrets.GITEA_API_URL }} | ||||
|         GITEA_REPOSITORY: ${{ secrets.GITEA_REPOSITORY }} | ||||
|       run: | | ||||
|         # Create release using Gitea API | ||||
|         RESPONSE=$(curl -X POST \ | ||||
|           -H "Authorization: token ${GITEA_TOKEN}" \ | ||||
|           -H "Content-Type: application/json" \ | ||||
|           -H "accept: application/json" \ | ||||
|           ${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases \ | ||||
|           -d '{ | ||||
|         -H "Authorization: token ${GITEA_TOKEN}" \ | ||||
|         -H "Content-Type: application/json" \ | ||||
|         -H "accept: application/json" \ | ||||
|         "${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases" \ | ||||
|         -d '{ | ||||
|             "tag_name": "${{ github.ref_name }}", | ||||
|             "name": "Release ${{ steps.get_version.outputs.VERSION }}", | ||||
|             "body": "${{ steps.changelog.outputs.CHANGES }}", | ||||
|             "draft": false, | ||||
|             "prerelease": false | ||||
|           }') | ||||
|         }') | ||||
|          | ||||
|         # Extract release ID from response | ||||
|         RELEASE_ID=$(echo $RESPONSE | jq -r .id) | ||||
|          | ||||
|         # Upload full firmware | ||||
|         curl -X POST \ | ||||
|           -H "Authorization: token ${GITEA_TOKEN}" \ | ||||
|           -H "Content-Type: application/octet-stream" \ | ||||
|           ${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_full.bin \ | ||||
|           --data-binary @.pio/build/esp32dev/filaman_full.bin | ||||
|         -H "Authorization: token ${GITEA_TOKEN}" \ | ||||
|         -H "Content-Type: application/octet-stream" \ | ||||
|         "${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_full.bin" \ | ||||
|         --data-binary @.pio/build/esp32dev/filaman_full.bin | ||||
|          | ||||
|         # Upload OTA firmware | ||||
|         curl -X POST \ | ||||
|           -H "Authorization: token ${GITEA_TOKEN}" \ | ||||
|           -H "Content-Type: application/octet-stream" \ | ||||
|           ${GITEA_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_ota.bin \ | ||||
|           --data-binary @.pio/build/esp32dev/filaman_ota.bin | ||||
|         -H "Authorization: token ${GITEA_TOKEN}" \ | ||||
|         -H "Content-Type: application/octet-stream" \ | ||||
|         "${GITEA_API_URL}/repos/${GITEA_REPOSITORY}/releases/${RELEASE_ID}/assets?name=filaman_ota.bin" \ | ||||
|         --data-binary @.pio/build/esp32dev/filaman_ota.bin | ||||
							
								
								
									
										23
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -6,27 +6,28 @@ on: | ||||
|       - 'v*' | ||||
|  | ||||
| jobs: | ||||
|   detect-and-run: | ||||
|   detect: | ||||
|     runs-on: ubuntu-latest | ||||
|     outputs: | ||||
|       platform: ${{ steps.platform.outputs.platform }} | ||||
|     steps: | ||||
|       - name: Checkout code | ||||
|         uses: actions/checkout@v4 | ||||
|       - uses: actions/checkout@v4 | ||||
|        | ||||
|       - name: Determine hosting platform | ||||
|         id: platform | ||||
|         run: | | ||||
|           if [[ "$GITHUB_SERVER_URL" == "https://github.com" ]]; then | ||||
|             echo "platform=github" >> $GITHUB_OUTPUT | ||||
|           elif [[ "$CI_SERVER_URL" == *"gitlab"* ]]; then | ||||
|             echo "platform=gitlab" >> $GITHUB_OUTPUT | ||||
|           else | ||||
|             echo "platform=gitea" >> $GITHUB_OUTPUT | ||||
|           fi | ||||
|  | ||||
|       - name: Run GitHub Release | ||||
|         if: steps.platform.outputs.platform == 'github' | ||||
|         uses: ./.github/workflows/providers/github-release.yml | ||||
|   gitea-release: | ||||
|     needs: detect | ||||
|     if: needs.detect.outputs.platform == 'gitea' | ||||
|     uses: ./.github/workflows/providers/gitea-release.yml | ||||
|  | ||||
|       - name: Run Gitea Release | ||||
|         if: steps.platform.outputs.platform == 'gitea' | ||||
|         uses: ./.github/workflows/providers/gitea-release.yml | ||||
|   github-release: | ||||
|     needs: detect | ||||
|     if: needs.detect.outputs.platform == 'github' | ||||
|     uses: ./.github/workflows/providers/github-release.yml | ||||
							
								
								
									
										20
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,5 +1,25 @@ | ||||
| # Changelog | ||||
|  | ||||
| ## [1.2.8] - 2025-02-18 | ||||
| ### Added | ||||
| - update version to 1.2.8 in platformio.ini; refactor Gitea and GitHub release workflows | ||||
| - update version to 1.2.7 in platformio.ini; adjust Gitea release workflow | ||||
|  | ||||
|  | ||||
| ## [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 | ||||
| ### Added | ||||
| - update version to 1.2.4 in HTML files and platformio.ini | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
| ; https://docs.platformio.org/page/projectconf.html | ||||
|  | ||||
| [common] | ||||
| version = "1.2.4" | ||||
| version = "1.2.8" | ||||
|  | ||||
| [env:esp32dev] | ||||
| platform = espressif32 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user