Skip to content

Commit

Permalink
fix: updated packages, improved pipeline, added code signing for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
dArignac committed Sep 15, 2023
1 parent 99f0faa commit eead54c
Show file tree
Hide file tree
Showing 648 changed files with 2,590 additions and 1,458 deletions.
105 changes: 60 additions & 45 deletions .github/workflows/build_and_upload_apps.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: Build and Upload Artifacts for Linux
name: Build and Upload Artifacts

# @semantic-release/github publishes the release as final step
on:
release:
types: [published]

env:
NODE_VERSION: 18.14.2

jobs:
build:
name: Build release and upload
name: Build Tauri Apps and upload to release

strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
# os: [ubuntu-latest, macos-latest, windows-latest]
os: [macos-latest]

runs-on: ${{ matrix.os }}

Expand All @@ -27,7 +25,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"

- name: Cache node_modules
uses: actions/cache@v3
Expand All @@ -39,37 +37,53 @@ jobs:
${{ runner.os }}-node-
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable

- name: Cache Rust
uses: Swatinem/rust-cache@v1
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

- name: Install Dependencies for Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
# - name: Install Dependencies for Ubuntu
# if: matrix.os == 'ubuntu-latest'
# run: |
# sudo apt-get update
# sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf

- name: Install node packages
if: steps.node-cache.outputs.cache-hit != 'true'
run: yarn

- name: Bundle application
run: yarn run tauri build
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

- name: Store signature as artifact
uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest'
GITHUB_TOKEN: ${{ secrets.PAT }}
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
with:
name: release-signature-${{ runner.os }}-${{ github.ref_name }}
path: src-tauri/target/release/bundle/appimage/bpmn-modeler_*_amd64.AppImage.tar.gz.sig
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "BPMN v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
args: "--verbose"

# - name: Bundle application
# run: yarn run tauri build
# env:
# TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}

# - name: Store signature as artifact
# uses: actions/upload-artifact@v3
# if: matrix.os == 'ubuntu-latest'
# with:
# name: release-signature-${{ runner.os }}-${{ github.ref_name }}
# path: src-tauri/target/release/bundle/appimage/bpmn-modeler_*_amd64.AppImage.tar.gz.sig

- name: Store signature as artifact
uses: actions/upload-artifact@v3
Expand All @@ -78,12 +92,12 @@ jobs:
name: release-signature-${{ runner.os }}-${{ github.ref_name }}
path: src-tauri/target/release/bundle/macos/*.app.tar.gz.sig

- name: Store signature as artifact
uses: actions/upload-artifact@v3
if: matrix.os == 'windows-latest'
with:
name: release-signature-${{ runner.os }}-${{ github.ref_name }}
path: src-tauri/target/release/bundle/msi/*.msi.zip.sig
# - name: Store signature as artifact
# uses: actions/upload-artifact@v3
# if: matrix.os == 'windows-latest'
# with:
# name: release-signature-${{ runner.os }}-${{ github.ref_name }}
# path: src-tauri/target/release/bundle/msi/*.msi.zip.sig

- name: Attach binary to tags
run: node ci/attachBinariesToRelease.mjs ${{ secrets.PAT }} ${{ matrix.os }}
Expand All @@ -102,26 +116,27 @@ jobs:
with:
ref: tauri-updates

- name: Download signature file for Linux
id: signature-linux
uses: actions/download-artifact@v3
with:
name: release-signature-Linux-${{ github.ref_name }}
# - name: Download signature file for Linux
# id: signature-linux
# uses: actions/download-artifact@v3
# with:
# name: release-signature-Linux-${{ github.ref_name }}

- name: Download signature file for MacOS
id: signature-macos
uses: actions/download-artifact@v3
with:
name: release-signature-macOS-${{ github.ref_name }}

- name: Download signature file for Windows
id: signature-windows
uses: actions/download-artifact@v3
with:
name: release-signature-Windows-${{ github.ref_name }}
# - name: Download signature file for Windows
# id: signature-windows
# uses: actions/download-artifact@v3
# with:
# name: release-signature-Windows-${{ github.ref_name }}

- name: Create update file
run: ./create-update.sh "${{ github.ref_name }}" ${{ steps.signature-linux.outputs.download-path }} ${{ steps.signature-macos.outputs.download-path }} ${{ steps.signature-windows.outputs.download-path }}
# run: ./create-update.sh "${{ github.ref_name }}" ${{ steps.signature-linux.outputs.download-path }} ${{ steps.signature-macos.outputs.download-path }} ${{ steps.signature-windows.outputs.download-path }}
run: ./create-update.sh "${{ github.ref_name }}" ${{ steps.signature-macos.outputs.download-path }}

- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Release

on: push

env:
NODE_VERSION: 18.14.2

jobs:
# this installs the React dependencies, runs the tests (if there were any) and creates a new release/tag on Github if on main branch
# creating the tauri binaries for the release happens in the tauri job
Expand All @@ -24,7 +21,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"

- name: Cache node_modules
uses: actions/cache@v3
Expand Down Expand Up @@ -56,7 +53,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
node-version-file: ".nvmrc"

- name: Cache node_modules
uses: actions/cache@v3
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/asap-npm-2.0.6-36714d439d-b296c92c4b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/clsx-npm-1.2.1-77792dc182-30befca801.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/del-npm-6.1.1-9285f60bfd-563288b73b.zip
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/depd-npm-1.1.2-b0c8414da7-6b406620d2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/didi-npm-9.0.2-5099769212-491b692113.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/glob-npm-7.2.3-2d866d17a5-29452e97b3.zip
Binary file not shown.
Binary file removed .yarn/cache/glob-npm-8.1.0-65f64af8b1-92fbea3221.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/got-npm-11.8.6-89e7cd5d67-bbc783578a.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ids-npm-1.0.0-8d66dcb0d7-8d8dea5292.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ini-npm-1.3.8-fb5040b4c0-dfd98b0ca3.zip
Binary file not shown.
Binary file removed .yarn/cache/ini-npm-3.0.1-5000598340-947b582a82.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ip-npm-2.0.0-204facb3cc-cfcfac6b87.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit eead54c

Please sign in to comment.