Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Nov 1, 2024
1 parent 4b1a224 commit e0be045
Show file tree
Hide file tree
Showing 22 changed files with 370 additions and 271 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node-CI Beta
name: Beta Release

on:
push:
Expand All @@ -7,21 +7,21 @@ on:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: build_and_test
uses: donavanbecker/.github/.github/workflows/eslint.yml@latest
uses: homebridge/.github/.github/workflows/eslint.yml@latest

publish:
needs: lint

if: ${{ github.repository == 'homebridge-plugins/homebridge-cloudflared-tunnel' }}

uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
permissions:
id-token: write
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
with:
tag: 'beta'
dynamically_adjust_version: true
Expand All @@ -33,7 +33,7 @@ jobs:
pre-release:
needs: publish
if: ${{ github.repository == 'homebridge-plugins/homebridge-cloudflared-tunnel' }}
uses: donavanbecker/.github/.github/workflows/pre-release.yml@latest
uses: homebridge/.github/.github/workflows/pre-release.yml@latest
with:
npm_version: ${{ needs.publish.outputs.NPM_VERSION }}
body: |
Expand All @@ -42,11 +42,14 @@ jobs:
[How To Test Beta Releases](https://github.com/homebridge-plugins/homebridge-cloudflared-tunnel/wiki/Beta-Version)
github-releases-to-discord:
needs: [publish, pre-release]
name: Discord Webhooks
needs: [build_and_test,publish]
if: ${{ github.repository == 'homebridge-plugins/homebridge-cloudflared-tunnel' }}
uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
message_title: "Cloudflared Tunnel Beta Release"
message_url: "https://github.com/OpenWonderLabs/homebridge-cloudflared-tunnel/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
title: "Cloudflared Tunnel Beta Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge-plugins/homebridge-cloudflared-tunnel/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK_URL_BETA: ${{ secrets.DISCORD_WEBHOOK_URL_BETA }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_BETA || secrets.DISCORD_WEBHOOK_URL_LATEST }}
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ on:

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: build_and_test
uses: donavanbecker/.github/.github/workflows/eslint.yml@latest
uses: homebridge/.github/.github/workflows/eslint.yml@latest
2 changes: 1 addition & 1 deletion .github/workflows/changerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ on:

jobs:
changerelease:
uses: donavanbecker/.github/.github/workflows/changerelease.yml@latest
uses: homebridge/.github/.github/workflows/change-release.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
13 changes: 0 additions & 13 deletions .github/workflows/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ on: [pull_request]

jobs:
labeler:
uses: donavanbecker/.github/.github/workflows/labeler.yml@latest
uses: homebridge/.github/.github/workflows/labeler.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ on:

jobs:
release-drafter:
uses: donavanbecker/.github/.github/workflows/release-drafter.yml@latest
uses: homebridge/.github/.github/workflows/release-drafter.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
25 changes: 13 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
name: Node Release
name: Release

on:
release:
types: [published]

jobs:
build_and_test:
uses: donavanbecker/.github/.github/workflows/nodejs-build-and-test.yml@latest
uses: homebridge/.github/.github/workflows/nodejs-build-and-test.yml@latest
with:
enable_coverage: true
secrets:
token: ${{ secrets.GITHUB_TOKEN }}

publish:
needs: build_and_test

if: ${{ github.repository == 'homebridge-plugins/homebridge-cloudflared-tunnel' }}

uses: donavanbecker/.github/.github/workflows/npm-publish.yml@latest
permissions:
id-token: write
uses: homebridge/.github/.github/workflows/npm-publish-esm.yml@latest
secrets:
npm_auth_token: ${{ secrets.npm_token }}

github-releases-to-discord:
needs: publish

name: Discord Webhooks
needs: [build_and_test,publish]
if: ${{ github.repository == 'homebridge-plugins/homebridge-cloudflared-tunnel' }}

uses: donavanbecker/.github/.github/workflows/discord-webhooks.yml@latest
uses: homebridge/.github/.github/workflows/discord-webhooks.yml@latest
with:
message_title: "Cloudflared Tunnel"
message_url: "https://github.com/homebridge-plugins/homebridge-cloudflared-tunnel/releases/tag/v${{ github.event.release.tag_name }}"
title: "Cloudflared Tunnel Release"
description: |
Version `v${{ needs.publish.outputs.NPM_VERSION }}`
url: "https://github.com/homebridge-plugins/homebridge-cloudflared-tunnel/releases/tag/v${{ needs.publish.outputs.NPM_VERSION }}"
secrets:
DISCORD_WEBHOOK_URL_LATEST: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_LATEST }}
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ on:

jobs:
stale:
uses: donavanbecker/.github/.github/workflows/stale.yml@latest
uses: homebridge/.github/.github/workflows/stale.yml@latest
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit e0be045

Please sign in to comment.