Skip to content

Commit

Permalink
Test build offline in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Fiala committed Jan 8, 2025
1 parent 7e28c32 commit 0a92365
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/build-offline-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions .github/workflows/pr-trigger.yml
Original file line number Diff line number Diff line change
@@ -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: ./.github/workflows/build-offline-installer.yml@feat/replace_pdf_with_html_doc
with:
esp_idf_version: v5.4

0 comments on commit 0a92365

Please sign in to comment.