Skip to content

Commit

Permalink
Fixed release ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Sep 10, 2024
1 parent 88f400f commit 68c9430
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 4 deletions.
96 changes: 95 additions & 1 deletion .github/workflows/release-tauri-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
- platform: 'macos-13' # for Intel based macs.
- platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
# - platform: 'ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
env:
MACOSX_DEPLOYMENT_TARGET: 10.13

Expand Down Expand Up @@ -130,6 +130,100 @@ jobs:
releaseDraft: true
prerelease: true

# - name: Build for android targets
# if: matrix.platform == 'ubuntu-22.04'
# run: |
# nix develop --no-update-lock-file .#androidDev --command npm run tauri android build --apk --target

# - name: Upload APKs
# if: matrix.platform == 'ubuntu-22.04'
# uses: xresloader/upload-to-github-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# file: "*.md"
# release_id: ${{ needs.publish-happ.outputs.releaseId }}

release-tauri-app-ubuntu:
permissions: write-all
needs: publish-happ

runs-on: ubuntu-latest
steps:

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks out a copy of your repository on the ubuntu-latest machine
- uses: actions/checkout@v3

- name: Extend space
if: matrix.platform == 'ubuntu-22.04'
uses: ./.github/actions/extend-space

- name: setup node
uses: actions/setup-node@v1
with:
node-version: 20

- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: 1.77.2

- name: install dependencies
run: |
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev
- name: install Go stable
uses: actions/setup-go@v4
with:
go-version: "stable"

- name: Install and prepare
run: |
npm install
- name: build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.publish-happ.outputs.releaseId }}

- name: Print version
run: |
echo "The Version was: ${{ needs.publish-happ.outputs.appVersion }}"
id: print-version

- name: Download release of the .happ
uses: robinraju/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
releaseId: ${{ needs.publish-happ.outputs.releaseId }}
fileName: 'relay.happ'
out-file-path: 'workdir/'

- name: build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tauriScript: FIX_SQL_FMT=1 npm run tauri
releaseId: ${{ needs.publish-happ.outputs.releaseId }}
releaseDraft: true
prerelease: true

release-tauri-app-windows:
permissions: write-all
needs: publish-happ
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68c9430

Please sign in to comment.