feat: Complete settings system restructuring with independent modal (… #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: deploy | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| publish: | |
| permissions: | |
| contents: write | |
| packages: write | |
| attestations: write | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout git repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for release notes | |
| - name: Install Node and NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: git fetch --all --tags | |
| - name: Version Check | |
| uses: thebongy/version-check@v2 | |
| with: | |
| file: package.json | |
| tagFormat: v${version} | |
| failBuild: true | |
| id: version_check | |
| - name: Set up QEMU for multi-platform builds | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| with: | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install | |
| run: npm install | |
| - name: Set repository name lowercase | |
| run: | | |
| echo "REPO_LOWER=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | |
| - name: Build & Push Multi-Architecture Docker Image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| push: true | |
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
| tags: | | |
| ghcr.io/${{ env.REPO_LOWER }}:latest | |
| ghcr.io/${{ env.REPO_LOWER }}:v${{ steps.version_check.outputs.rawVersion }} | |
| - name: Create Release | |
| if: steps.version_check.outputs.versionChanged == 'true' | |
| run: | | |
| CURR_TAG="v${{ steps.version_check.outputs.rawVersion }}" | |
| gh release create "$CURR_TAG" --title "$CURR_TAG" --notes "Release $CURR_TAG" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: AButler/upload-release-assets@v2.0 | |
| with: | |
| files: 'docker-compose*' | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| release-tag: "v${{ steps.version_check.outputs.rawVersion }}" | |