diff --git a/.github/workflows/build-offline-installer.yml b/.github/workflows/build-offline-installer.yml index 61eab55..17c3d27 100644 --- a/.github/workflows/build-offline-installer.yml +++ b/.github/workflows/build-offline-installer.yml @@ -34,45 +34,3 @@ jobs: CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }} shell: pwsh run: .\Build-Installer.ps1 -InstallerType offline -OfflineBranch v${{ env.IDF_BRANCH }} - - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ env.VERSION }} - release_name: Release ${{ env.VERSION }} - draft: false - prerelease: false - - - name: Get installer size and store it to file - run: | - echo $(Get-ItemProperty -Path .\build\esp-idf-tools-setup-offline-signed.exe | Select-Object -ExpandProperty Length) > variables.txt - echo "Instaler size from variable is $(Get-Content variables.txt)" - - - name: Upload artifacts of installer size - uses: actions/upload-artifact@v4 - with: - name: installer-size - path: ./variables.txt - - - name: Upload Release Asset To Github - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./build/esp-idf-tools-setup-offline-signed.exe - asset_name: esp-idf-tools-setup-${{ env.VERSION }}.exe - asset_content_type: application/octet-stream - - - name: Upload Release Asset To dl.espressif.com - id: upload-release-asset-espressif - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} - shell: pwsh - run: aws s3 cp --acl=public-read --no-progress ./build/esp-idf-tools-setup-offline-signed.exe s3://${{ secrets.DL_BUCKET }}/dl/idf-installer/esp-idf-tools-setup-${{ env.VERSION }}.exe diff --git a/.github/workflows/pr-trigger.yml b/.github/workflows/pr-trigger.yml new file mode 100644 index 0000000..6bba71b --- /dev/null +++ b/.github/workflows/pr-trigger.yml @@ -0,0 +1,13 @@ +name: TEST Build Offline Installer on PR + +on: + pull_request: + branches: + - feat/replace_pdf_with_html_doc + +jobs: + trigger-build-offline-installer: + name: Trigger Build Offline Installer + uses: ./build-offline-installer@main + with: + esp_idf_version: v5.4