Skip to content

Commit

Permalink
differentiate beta and release updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Oct 31, 2023
1 parent ef67eb4 commit 85c8dcf
Show file tree
Hide file tree
Showing 20 changed files with 341 additions and 243 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/Attach Artifacts.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Manual Attach Artifacts
name: Manually Attach Artifacts ( If the automation fails )
run-name: Manually Attach Artifacts against ${{ github.event.inputs.tag }}

on:
workflow_dispatch:
Expand Down Expand Up @@ -30,13 +31,19 @@ jobs:
run: |
export npm_config_prefix=$(pwd)/package
npm install -g homebridge-config-ui-x@${{ github.event.inputs.tag }}
- name: Remove invalid node-pty node-gyp run
run: |
rm -rf $(pwd)/package/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build
- name: Create Bundle
run: |
tar -C $(pwd)/package --owner=0 --group=0 --format=posix -czvf homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz .
shasum -a 256 homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz > SHASUMS256.txt
- name: Attach Bundle
uses: AButler/[email protected]
with:
files: 'homebridge-config-ui-x-${{ github.event.inputs.tag }}.tar.gz;SHASUMS256.txt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.inputs.tag }}
release-tag: ${{ github.event.inputs.tag }}
4 changes: 2 additions & 2 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:

uses: homebridge/.github/.github/workflows/npm-publish.yml@latest
with:
tag: 'test'
tag: 'beta'
dynamically_adjust_version: true
npm_version_command: 'pre'
pre_id: 'test'
pre_id: 'beta'
install_cmd: npm ci && cd ui && npm ci
secrets:
npm_auth_token: ${{ secrets.npm_token }}
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Node Release
run-name: Production Release ${{ github.event.release.tag_name }}

on:
# Removed publish on push, and forced manual release from github
Expand Down Expand Up @@ -50,13 +51,19 @@ jobs:
run: |
export npm_config_prefix=$(pwd)/package
npm install -g homebridge-config-ui-x@${{ github.event.release.tag_name }}
- name: Remove invalid node-pty node-gyp run
run: |
rm -rf $(pwd)/package/lib/node_modules/homebridge-config-ui-x/node_modules/@homebridge/node-pty-prebuilt-multiarch/build
- name: Create Bundle
run: |
tar -C $(pwd)/package --owner=0 --group=0 --format=posix -czvf homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz .
shasum -a 256 homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz > SHASUMS256.txt
- name: Attach Bundle
uses: AButler/[email protected]
with:
files: 'homebridge-config-ui-x-${{ github.event.release.tag_name }}.tar.gz;SHASUMS256.txt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.event.release.tag_name }}
release-tag: ${{ github.event.release.tag_name }}
128 changes: 76 additions & 52 deletions CHANGELOG.md

Large diffs are not rendered by default.

Loading

0 comments on commit 85c8dcf

Please sign in to comment.