Skip to content

Bump the npm group in /website with 7 updates (#331) #167

Bump the npm group in /website with 7 updates (#331)

Bump the npm group in /website with 7 updates (#331) #167

Workflow file for this run

name: "Publish"
on:
push:
branches:
- master
jobs:
publish-tauri:
if: "contains(github.event.head_commit.message, 'release')"
name: Tauri app
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [ windows-latest ]
defaults:
run:
working-directory: 'webapp'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: 'webapp/src-tauri'
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: install webapp dependencies
run: npm ci
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "BetterFleet v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
publish-backend:
if: "contains(github.event.head_commit.message, 'release')"
name: Backend app
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v4
with:
context: backend/
push: true
tags: zelytra/better-fleet-backend:latest
publish-website:
if: "contains(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v4
with:
context: website/
push: true
tags: zelytra/better-fleet-website:latest