-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #635 from rbergen/releases-installer
Make Web Installer build and deploy on releases publication
- Loading branch information
Showing
5 changed files
with
83 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release actions | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
call-web-installer: | ||
uses: ./.github/workflows/web_installer.yml | ||
with: | ||
release-name: ${{ github.event.release.name }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Web Installer build and deploy | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
release-name: | ||
description: 'Name of the Web Installer release' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build-and-publish-installer: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
PLATFORMIO_CORE_DIR: ${{ github.workspace }}/.platformio | ||
|
||
steps: | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
- name: Maximize build space | ||
uses: easimon/maximize-build-space@master | ||
with: | ||
remove-android: 'true' | ||
remove-codeql: 'true' | ||
remove-docker-images: 'true' | ||
remove-dotnet: 'true' | ||
remove-haskell: 'true' | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install PlatformIO | ||
run: | | ||
curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core-installer/master/get-platformio.py -o get-platformio.py | ||
python get-platformio.py | ||
echo "${PLATFORMIO_CORE_DIR}/penv/bin" >> $GITHUB_PATH | ||
- name: Copy secrets and clear SSID | ||
run: | | ||
grep -v "^#define cszSSID" include/secrets.example.h > include/secrets.h | ||
echo '#define cszSSID ""' >> include/secrets.h | ||
- name: Build web installer environments and installer | ||
run: | | ||
python tools/bake_installer.py '${{ inputs.release-name }}' | ||
touch WebInstaller/.nojekyll | ||
- name: Push to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: pages | ||
folder: WebInstaller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters