Skip to content

feat: Complete settings system restructuring with independent modal (… #17

feat: Complete settings system restructuring with independent modal (…

feat: Complete settings system restructuring with independent modal (… #17

Workflow file for this run

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 }}"