|
34 | 34 | CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }} |
35 | 35 | shell: pwsh |
36 | 36 | 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 |
0 commit comments