Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ jobs:
name: Build Upgrade Pack
needs: Build
uses: ./.github/workflows/wc-upgrade-pack.yml
with:
version: ${{ github.ref_name }}
2 changes: 2 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
name: Build Upgrade Pack
needs: [build]
uses: ./.github/workflows/wc-upgrade-pack.yml
with:
version: ${{ github.ref_name }}

apply-release-notes-template:
name: 📝 Apply Release Template
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/wc-upgrade-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

on:
workflow_call:
inputs:
version:
description: "Version"
required: true
type: string

permissions: {}

env:
VERSION: "0.4.1" # x-release-please-version

jobs:
upgrade-pack:
name: Build Upgrade Pack
Expand All @@ -18,16 +20,18 @@
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: HostInstall
- run: tar -zxvf Postmaster-${{ env.VERSION }}-Linux.tar.gz
- id: convert-version
run: echo "${{ inputs.version }}" | sed -e 's/v/version=/' -e 's/\(.*\)\/merge/version=\1/' >> $GITHUB_ENV
- run: tar -zxvf Postmaster-$version-Linux.tar.gz
- run: mkdir install
- run: mv Postmaster-${{ env.VERSION }}-Linux/* install/
- run: mv Postmaster-$version-Linux/* install/
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: postmaster
- run: tar -zxvf Postmaster-${{ env.VERSION }}-Generic-ELF.tar.gz
- run: cp -r Postmaster-${{ env.VERSION }}-Generic-ELF/* install/
- run: install/bin/postmaster.upgrade_pack_builder --app=install/bin/postmaster.postmaster_stm32f407.hex --output=Postmaster-${{ env.VERSION }}.upg
- run: tar -zxvf Postmaster-$version-Generic-ELF.tar.gz
- run: cp -r Postmaster-$version-Generic-ELF/* install/
- run: install/bin/postmaster.upgrade_pack_builder --app=install/bin/postmaster.postmaster_stm32f407.hex --output=Postmaster-${{ inputs.version }}.upg
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: UpgradePack
path: Postmaster-${{ env.VERSION }}.upg
path: Postmaster-${{ inputs.version }}.upg
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
".": {
"release-type": "simple",
"package-name": "amp-postmaster",
"extra-files": ["CMakeLists.txt", ".github/workflows/wc-upgrade-pack.yml"]
"extra-files": ["CMakeLists.txt"]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
Expand Down
Loading