Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

🍱 Fix favicon loading, and add tag workflow

Alicia Sykes20270e05d9d4
diff --git a/.github/workflows/create-tag-for-version.yml b/.github/workflows/create-tag-for-version.yml
deleted file mode 100644
index a17305c7..00000000
--- a/.github/workflows/create-tag-for-version.yml
+++ /dev/null
@@ -1,35 +0,0 @@
-# Manual fallback for creating a tag from the current package.json version.
-# The automated flow is handled by bump-and-tag.yml on PR merge.
-name: πŸ—οΈ Tag on Version Change
-
-on:
- workflow_dispatch:
-
-jobs:
- tag-if-version-updated:
- runs-on: ubuntu-latest
-
- steps:
- - name: Check Out Repository πŸ›ŽοΈ
- uses: actions/checkout@v4
- with:
- token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
- fetch-depth: 0
-
- - name: Extract Version from package.json πŸ”’
- id: package_version
- run: echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
-
- - name: Get Latest Tag 🏷️
- id: latest_tag
- run: |
- latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1) 2>/dev/null)
- echo "TAG=${latest_tag:-0}" >> $GITHUB_OUTPUT
-
- - name: Create and Push Tag ‴️
- if: steps.package_version.outputs.VERSION != steps.latest_tag.outputs.TAG && steps.latest_tag.outputs.TAG != '0'
- run: |
- git config user.name "Liss-Bot"
- git config user.email "[email protected]"
- git tag -a "${{ steps.package_version.outputs.VERSION }}" -m "Release v${{ steps.package_version.outputs.VERSION }}"
- git push origin "${{ steps.package_version.outputs.VERSION }}"
diff --git a/.github/workflows/manual-tag.yml b/.github/workflows/manual-tag.yml
new file mode 100644
index 00000000..c78ae6c3
--- /dev/null
+++ b/.github/workflows/manual-tag.yml
@@ -0,0 +1,66 @@
+# Manual fallback for creating a tag with optional version bump.
+# The automated flow is handled by bump-and-tag.yml on PR merge.
+name: πŸ—οΈ Tag on Version Change
+
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: 'Version to tag (e.g. 3.2.0). Leave empty to auto-bump patch.'
+ required: false
+
+concurrency:
+ group: manual-tag-version
+ cancel-in-progress: false
+
+jobs:
+ tag-version:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Check Out Repository πŸ›ŽοΈ
+ uses: actions/checkout@v4
+ with:
+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
+ fetch-depth: 0
+
+ - name: Configure Git Identity πŸ€–
+ run: |
+ git config user.name "Liss-Bot"
+ git config user.email "[email protected]"
+
+ - name: Determine and Apply Version πŸ”’
+ id: version
+ env:
+ INPUT_VERSION: ${{ github.event.inputs.version }}
+ run: |
+ CURRENT=$(node -p "require('./package.json').version")
+ if [ -n "$INPUT_VERSION" ]; then
+ TARGET="${INPUT_VERSION#v}"
+ else
+ npm version patch --no-git-tag-version > /dev/null
+ TARGET=$(node -p "require('./package.json').version")
+ fi
+ if [ "$TARGET" != "$CURRENT" ]; then
+ npm version "$TARGET" --no-git-tag-version --allow-same-version
+ git add package.json
+ git commit -m "πŸ”– Bump version to $TARGET [skip ci]"
+ git push
+ echo "Committed version bump to $TARGET"
+ else
+ echo "package.json already at $CURRENT, skipping commit"
+ fi
+ echo "TARGET=$TARGET" >> $GITHUB_OUTPUT
+
+ - name: Create and Push Tag ‴️
+ env:
+ TAG: ${{ steps.version.outputs.TARGET }}
+ run: |
+ git fetch --tags
+ if git rev-parse "refs/tags/$TAG" >/dev/null 2>&1; then
+ echo "Tag $TAG already exists, skipping"
+ else
+ git tag -a "$TAG" -m "Release v$TAG"
+ git push origin "$TAG"
+ echo "Created and pushed tag $TAG"
+ fi
diff --git a/src/utils/defaults.js b/src/utils/defaults.js
index 8f72fcc8..e359dff8 100644
--- a/src/utils/defaults.js
+++ b/src/utils/defaults.js
@@ -325,6 +325,8 @@ module.exports = {
mode: 'production',
manifestCrossorigin: 'use-credentials',
iconPaths: {
+ faviconSVG: null,
+ appleTouchIcon: null,
favicon64: './web-icons/favicon-64x64.png',
favicon32: './web-icons/favicon-32x32.png',
favicon16: './web-icons/favicon-16x16.png',