Build release #1
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
name: Build release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: choice | |
description: Version | |
required: true | |
default: patch | |
options: | |
- major | |
- minor | |
- patch | |
changelog: | |
type: string | |
description: Changelog | |
required: true | |
jobs: | |
main: | |
name: Build Homey release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update app version | |
uses: athombv/github-action-homey-app-version@master | |
id: update_app_version | |
with: | |
version: ${{ inputs.version }} | |
changelog: ${{ inputs.changelog }} | |
- name: Commit and push generated version | |
run: | | |
git config --local user.name "github-actions[bot]" | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add -A | |
git commit -m "Update Homey App Version to v${{ steps.update_app_version.outputs.version }}" | |
git tag "v${{ steps.update_app_version.outputs.version }}" | |
git push origin HEAD --tags | |
- name: Publish app | |
uses: athombv/github-action-homey-app-publish@master | |
id: publish | |
with: | |
personal_access_token: ${{ secrets.HOMEY_PAT }} | |
- name: Add manage URL to job summary | |
run: | | |
echo "App release to be managed at ${{ steps.publish.outputs.url }}" >> $GITHUB_STEP_SUMMARY | |
- name: Create Github Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body: ${{ inputs.changelog }} | |
generate_release_notes: true | |
make_latest: true |