Skip to content

Commit

Permalink
Merge pull request #234 from espressif/fix/automatic_release
Browse files Browse the repository at this point in the history
Fix/automatic release
  • Loading branch information
jakub-kocka authored Mar 25, 2024
2 parents 9bbe556 + 25c2f09 commit 8475fe1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ env:
jobs:
build-installer-online:
name: Build Online Installer
if: ${{ inputs.installer_type }} == 'online'
if: ${{ github.env.INSTALLER_TYPE }} == 'online'
uses: espressif/idf-installer/.github/workflows/build-online-installer.yml@main
with:
online_installer_version: ${{ inputs.online_installer_version }}
secrets: inherit

build-installer-offline:
name: Build Offline Installer
if: ${{ inputs.installer_type }} == 'offline'
if: ${{ github.env.INSTALLER_TYPE }} == 'offline'
uses: espressif/idf-installer/.github/workflows/build-offline-installer.yml@main
with:
esp_idf_version: ${{ inputs.esp_idf_version}}
secrets: inherit

build-installer-ide:
name: Build IDE Installer
if: ${{ inputs.installer_type }} == 'espressif-ide'
if: ${{ github.env.INSTALLER_TYPE }} == 'espressif-ide'
uses: espressif/idf-installer/.github/workflows/build-espressif-ide-installer.yml@main
with:
esp_idf_version: ${{ inputs.esp_idf_version }}
Expand All @@ -60,7 +60,7 @@ jobs:

update-docs-files:
needs: [build-installer-online, build-installer-offline, build-installer-ide]
name: Create ${{ inputs.installer_type}} installer release PR
name: Create ${{ github.env.INSTALLER_TYPE }} installer release PR
if: ${{ always() }} && (${{ needs.build-installer-ide.result }} == 'success' || ${{ needs.build-installer-offline.result }} == 'success' || ${{ needs.build-installer-online.result }} == 'success')
runs-on: windows-latest
strategy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-online-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
shell: pwsh
run: .\Build-Installer.ps1 -InstallerType online

- name: Create Release TODO
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,3 +365,14 @@ Repackage of Git for Windows. Git for Windows is provided in ```.7z.exe``` forma
* Use the version as input into the manual workflow run
* Run the workflow ```.github/workflow/bundle-git.yaml`
* On success the Git version will be on Espressif's download server
## Automatic release of IDF Windows Installer
There is workflow for the automatic release of IDF Windows installer (build-installer-any), in this workflow few parameters has to be specified:
* Installer Type - choose the installer type (offline, online, espressif-ide)
* ESP-IDF version - needed for offline installer type, version of ESP-IDF in the format `X.Y` or `X.Y.Z`
* Espressif IDE version - needed for espressif-ide installer type, version of ESP-IDE in the format `X.Y.Z`
* Online Installer version - needed for online installer type, version of online installer (application) in the format `X.Y`
The offline installer buttons on the index page are created based on the variable `SUPPORTED_IDF_VERSIONS` which has to be edited in the workflow file if the change is needed.

0 comments on commit 8475fe1

Please sign in to comment.