Skip to content

Commit 246682a

Browse files
author
Marek Fiala
committed
Test build offline in PR
1 parent 7e28c32 commit 246682a

File tree

2 files changed

+13
-42
lines changed

2 files changed

+13
-42
lines changed

.github/workflows/build-offline-installer.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -34,45 +34,3 @@ jobs:
3434
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
3535
shell: pwsh
3636
run: .\Build-Installer.ps1 -InstallerType offline -OfflineBranch v${{ env.IDF_BRANCH }}
37-
38-
- name: Create Release
39-
id: create_release
40-
uses: actions/create-release@v1
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
with:
44-
tag_name: ${{ env.VERSION }}
45-
release_name: Release ${{ env.VERSION }}
46-
draft: false
47-
prerelease: false
48-
49-
- name: Get installer size and store it to file
50-
run: |
51-
echo $(Get-ItemProperty -Path .\build\esp-idf-tools-setup-offline-signed.exe | Select-Object -ExpandProperty Length) > variables.txt
52-
echo "Instaler size from variable is $(Get-Content variables.txt)"
53-
54-
- name: Upload artifacts of installer size
55-
uses: actions/upload-artifact@v4
56-
with:
57-
name: installer-size
58-
path: ./variables.txt
59-
60-
- name: Upload Release Asset To Github
61-
id: upload-release-asset
62-
uses: actions/upload-release-asset@v1
63-
env:
64-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
with:
66-
upload_url: ${{ steps.create_release.outputs.upload_url }}
67-
asset_path: ./build/esp-idf-tools-setup-offline-signed.exe
68-
asset_name: esp-idf-tools-setup-${{ env.VERSION }}.exe
69-
asset_content_type: application/octet-stream
70-
71-
- name: Upload Release Asset To dl.espressif.com
72-
id: upload-release-asset-espressif
73-
env:
74-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
75-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
76-
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
77-
shell: pwsh
78-
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

.github/workflows/pr-trigger.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: TEST Build Offline Installer on PR
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- feat/replace_pdf_with_html_doc
7+
8+
jobs:
9+
trigger-build-offline-installer:
10+
name: Trigger Build Offline Installer
11+
uses: .github/workflows/build-offline-installer.yml@feat/replace_pdf_with_html_doc
12+
with:
13+
esp_idf_version: v5.4

0 commit comments

Comments
 (0)