Skip to content

Commit 5255c1b

Browse files
authored
Use HTMLPlayer and HTMLPlayer (beta) instead of HTMLPlayerBeta
1 parent e82ed71 commit 5255c1b

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

.github/workflows/send-beta-build.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ on:
44
push:
55
branches:
66
- updates
7-
workflow_dispatch:
8-
inputs:
9-
subfolder:
10-
description: 'Target subfolder in beta repo'
11-
required: true
12-
default: 'HTMLPlayerBeta'
137

148
concurrency:
159
group: "deploy-beta"
@@ -33,7 +27,7 @@ jobs:
3327
- name: Determine subfolder and zip name
3428
id: set-zip-name
3529
run: |
36-
SUBFOLDER="${{ github.event.inputs.subfolder || 'HTMLPlayerBeta' }}"
30+
SUBFOLDER="${{ github.event.repository.name }}"
3731
ZIP_NAME="$(echo "${SUBFOLDER}" | tr '[:upper:]' '[:lower:]')-build.zip"
3832
3933
echo "Subfolder: ${SUBFOLDER}"
@@ -96,19 +90,21 @@ jobs:
9690
run: |
9791
set -euo pipefail
9892
93+
BETA_REPO="${{ github.repository_owner }}/beta"
9994
SUBFOLDER="${{ steps.set-zip-name.outputs.subfolder }}"
10095
ARTIFACT_URL="${{ steps.get-artifact.outputs.url }}"
10196
ZIP_NAME="${{ steps.set-zip-name.outputs.zip_name }}"
10297
103-
echo "Dispatching with:"
98+
echo "Dispatching to: ${BETA_REPO}"
99+
echo "With:"
104100
echo " subfolder: ${SUBFOLDER}"
105101
echo " artifact_url: ${ARTIFACT_URL}"
106102
echo " zip_name: ${ZIP_NAME}"
107103
108104
curl -X POST \
109105
-H "Authorization: token ${{ secrets.BETA_PAT_TOKEN }}" \
110106
-H "Accept: application/vnd.github+json" \
111-
https://api.github.com/repos/HTMLToolkit/beta/dispatches \
107+
https://api.github.com/repos/${BETA_REPO}/dispatches \
112108
-d '{
113109
"event_type": "deploy-build",
114110
"client_payload": {
@@ -118,4 +114,4 @@ jobs:
118114
"subfolder": "'"${SUBFOLDER}"'",
119115
"zip_name": "'"${ZIP_NAME}"'"
120116
}
121-
}'
117+
}'

Build/vite.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ if (isWeb) {
2020
includeAssets: ["robots.txt"],
2121
manifest: {
2222
id: "htmlplayer",
23-
name: "HTMLPlayerBeta",
24-
short_name: "HTMLPlayerBeta",
23+
name: "HTMLPlayer (beta)",
24+
short_name: "HTMLPlayer(beta)",
2525
description:
2626
"A modern music player interface with playlists, song management, visualizers, and offline support.",
2727
categories: ["music", "audio", "entertainment", "tools"],
28-
start_url: "/beta/HTMLPlayerBeta/",
29-
scope: "/beta/HTMLPlayerBeta/",
28+
start_url: "/beta/HTMLPlayer/",
29+
scope: "/beta/HTMLPlayer/",
3030
display: "standalone",
3131
theme_color: "#00bfff",
3232
background_color: "#00bfff",
@@ -49,7 +49,7 @@ if (isWeb) {
4949
// },
5050
file_handlers: [
5151
{
52-
action: "/beta/HTMLPlayerBeta/",
52+
action: "/beta/HTMLPlayer/",
5353
accept: {
5454
"audio/mpeg": [".mp3"],
5555
"audio/wav": [".wav"],

0 commit comments

Comments
 (0)