π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
add: prebuild
Tobiasfa3f9d026abc
diff --git a/.github/workflows/build-release-assets.yml b/.github/workflows/build-release-assets.ymlnew file mode 100644index 00000000..9305d5af--- /dev/null+++ b/.github/workflows/build-release-assets.yml@@ -0,0 +1,109 @@+name: π¦ Build & Upload Release Assets++# Builds Dashy and uploads a pre-built tarball to the GitHub release.+# This allows non-Docker installs (e.g. Proxmox VE community scripts) to+# download a ready-to-run package without having to build from source.+#+# The tarball contains the compiled frontend (dist/) plus all server-side+# files. Users extract it and run `yarn install --production` + `node server`.++on:+ push:+ tags:+ - '*.*.*'+ workflow_dispatch:+ inputs:+ tag:+ description: 'Tag to build assets for (must already exist as a release)'+ required: true++permissions:+ contents: write++jobs:+ build-release-assets:+ name: Build app & upload tarball+ runs-on: ubuntu-latest+ env:+ TAG: ${{ github.event.inputs.tag || github.ref_name }}++ steps:+ - name: Checkout code ποΈ+ uses: actions/checkout@v4+ with:+ ref: ${{ github.event.inputs.tag || github.ref }}++ - name: Setup Node.js βοΈ+ uses: actions/setup-node@v4+ with:+ node-version: '18'+ cache: 'yarn'++ - name: Install dependencies π₯+ run: yarn install --frozen-lockfile --ignore-engines --network-timeout 300000++ - name: Build app ποΈ+ run: NODE_OPTIONS=--openssl-legacy-provider yarn build --mode production++ - name: Package release artifact π¦+ run: |+ STAGING="dashy-release-staging"+ mkdir -p "$STAGING"++ # Runtime files+ cp -r dist "$STAGING/"+ cp -r services "$STAGING/"+ cp -r public "$STAGING/"+ cp -r user-data "$STAGING/"+ cp server.js "$STAGING/"+ cp yarn.lock "$STAGING/"++ # Strip devDependencies so `yarn install --production` stays lean+ node -e "+ const pkg = JSON.parse(require('fs').readFileSync('package.json', 'utf8'));+ delete pkg.devDependencies;+ require('fs').writeFileSync('$STAGING/package.json', JSON.stringify(pkg, null, 2));+ "++ TARBALL="dashy-${TAG}.tar.gz"+ tar -czf "${TARBALL}" -C "${STAGING}" .+ echo "TARBALL=${TARBALL}" >> "$GITHUB_ENV"+ echo "Size: $(du -sh ${TARBALL} | cut -f1)"++ - name: Upload tarball to GitHub Release π+ uses: softprops/action-gh-release@v2+ with:+ tag_name: ${{ env.TAG }}+ files: ${{ env.TARBALL }}+ token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}++ - name: Job summary π+ if: always()+ run: |+ {+ echo "## π¦ Release Asset Build"+ echo ""+ echo "| | |"+ echo "|---|---|"+ echo "| Tag | \`${TAG}\` |"+ echo "| Artifact | \`${TARBALL}\` |"+ if [ -f "${TARBALL}" ]; then+ echo "| Size | $(du -sh ${TARBALL} | cut -f1) |"+ echo "| Status | β Uploaded |"+ else+ echo "| Status | β Failed |"+ fi+ echo ""+ echo "### Install instructions"+ echo "\`\`\`bash"+ echo "# Download and extract"+ echo "wget https://github.com/\${{ github.repository }}/releases/download/${TAG}/${TARBALL}"+ echo "tar -xzf ${TARBALL} -C /opt/dashy"+ echo ""+ echo "# Install production dependencies"+ echo "cd /opt/dashy && yarn install --production --ignore-engines"+ echo ""+ echo "# Start the server (default port 8080)"+ echo "node server"+ echo "\`\`\`"+ } >> "$GITHUB_STEP_SUMMARY"