fix: improve modal background opacity #39
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| release: | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 1 | |
| matrix: | |
| platform: [ubuntu-22.04, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies (Ubuntu) | |
| if: matrix.platform == 'ubuntu-22.04' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev | |
| - name: Rust setup | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }} | |
| - name: Node.js setup | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| cache-dependency-path: 'package-lock.json' | |
| - name: Install frontend dependencies | |
| run: npm ci --legacy-peer-deps | |
| - name: Patch macOS Bundle ID | |
| if: matrix.platform == 'macos-latest' | |
| run: | | |
| node -e 'const fs=require("fs"); let c=JSON.parse(fs.readFileSync("src-tauri/tauri.conf.json")); c.identifier="com.zync.desktop"; fs.writeFileSync("src-tauri/tauri.conf.json", JSON.stringify(c, null, 2));' | |
| - name: Build the app | |
| uses: tauri-apps/tauri-action@v0 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} | |
| TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} | |
| with: | |
| tagName: v__VERSION__ | |
| releaseName: "Zync v__VERSION__" | |
| releaseBody: "See the assets to download this version and install." | |
| releaseDraft: true | |
| prerelease: false | |
| apt-repo: | |
| needs: release | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout gh-pages branch | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: gh-pages | |
| fetch-depth: 0 | |
| - name: Install reprepro & gnupg | |
| run: sudo apt-get install -y reprepro gnupg | |
| - name: Import GPG private key | |
| run: | | |
| echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import | |
| - name: Get version from tag | |
| id: version | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT | |
| - name: Download .deb from release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| mkdir -p /tmp/debs | |
| gh release download ${{ github.ref_name }} -p "*.deb" -D /tmp/debs/ | |
| - name: Setup reprepro config | |
| run: | | |
| mkdir -p conf | |
| cat > conf/distributions <<EOF | |
| Origin: Zync | |
| Label: Zync | |
| Codename: stable | |
| Architectures: amd64 | |
| Components: main | |
| Description: Zync SSH Client | |
| SignWith: releases@zync.thesudoer.in | |
| EOF | |
| cat > conf/options <<EOF | |
| ask-passphrase | |
| EOF | |
| cat > conf/uploaders <<EOF | |
| allow * by anyone | |
| EOF | |
| - name: Add .deb to repo | |
| run: reprepro -S utils -P optional includedeb stable /tmp/debs/*.deb | |
| - name: Export public GPG key | |
| run: gpg --armor --export releases@zync.thesudoer.in > key.gpg | |
| - name: Commit and push | |
| run: | | |
| git config user.name "github-actions" | |
| git config user.email "actions@github.com" | |
| git add . | |
| git commit -m "APT repo update: ${{ github.ref_name }}" | |
| git push |