-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ae15f0
commit 275120b
Showing
1 changed file
with
15 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
tag: | ||
name: Verify Release Tag | ||
name: Release Tag | ||
runs-on: ubuntu-latest | ||
outputs: | ||
version: ${{ steps.get_version.outputs.version }} | ||
|
@@ -95,6 +95,14 @@ jobs: | |
run: | | ||
docker run --rm -v $(pwd):/repo -e PKG_RELEASE_TYPE="${{ needs.release_type.outputs.release_type }}" -e PKG_RELEASE_VERSION="${{ needs.tag.outputs.version }}" package-build | ||
- name: Rename package to include v in the name | ||
run: | | ||
mv *.deb homebridge_v${{ needs.tag.outputs.version }}_${{ matrix.QEMU_ARCH }}.deb | ||
- name: Rename manifest to include v in the name | ||
run: | | ||
mv *.manifest homebridge_v${{ needs.tag.outputs.version }}_${{ matrix.QEMU_ARCH }}.manifest | ||
- name: Set variables | ||
run: | | ||
echo BODY_FILE="$(ls *.manifest)" >> $GITHUB_ENV | ||
|
@@ -103,23 +111,23 @@ jobs: | |
uses: tubone24/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ needs.tag.outputs.version }} | ||
TAG_NAME: v${{ needs.tag.outputs.version }} | ||
with: | ||
is_append_body: "Contents of ${{ matrix.QEMU_ARCH }} Package." | ||
|
||
- name: update release | ||
uses: tubone24/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAG_NAME: ${{ needs.tag.outputs.version }} | ||
TAG_NAME: v${{ needs.tag.outputs.version }} | ||
with: | ||
body_path: ${{ env.BODY_FILE }} | ||
|
||
- uses: AButler/[email protected] | ||
with: | ||
files: '*.deb;*.manifest' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
release-tag: ${{ needs.tag.outputs.version }} | ||
release-tag: v${{ needs.tag.outputs.version }} | ||
|
||
update-apt-repo: | ||
name: Publish to Repo | ||
|
@@ -134,7 +142,7 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
tag: ${{ needs.tag.outputs.version }} | ||
tag: v${{ needs.tag.outputs.version }} | ||
|
||
- name: Download release assets | ||
uses: dsaltares/[email protected] | ||
|
@@ -185,7 +193,7 @@ jobs: | |
with: | ||
title: "Homebridge APT Package Release" | ||
description: | | ||
Version `${{ needs.tag.outputs.version }}` | ||
url: "https://github.com/homebridge/homebridge-apt-pkg/releases/tag/${{ needs.tag.outputs.version }}" | ||
Version `v${{ needs.tag.outputs.version }}` | ||
url: "https://github.com/homebridge/homebridge-apt-pkg/releases/tag/v${{ needs.tag.outputs.version }}" | ||
secrets: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }} |