Skip to content

Commit

Permalink
Update CI workflow / Release
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienD committed Jan 21, 2024
1 parent 24073d1 commit 178471d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ run-name: ${{ github.actor }} Release Gui for Google Emulators.

on:
push:
# branches:
# - main
tags:
- '*.*.*'

Expand All @@ -15,7 +17,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
outputs:
release_id: ${{ steps.create-release.outputs.result }}

Expand All @@ -38,8 +40,8 @@ jobs:
const { data } = await github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `app-v${process.env.PACKAGE_VERSION}`,
name: `Desktop App v${process.env.PACKAGE_VERSION}`,
tag_name: `v${process.env.PACKAGE_VERSION}`,
name: `Gui for GCP emulator App v${process.env.PACKAGE_VERSION}`,
body: 'Take a look at the assets to download and install this app.',
draft: true,
prerelease: false
Expand All @@ -53,7 +55,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, ubuntu-22.04, windows-latest]
platform: [macos-latest, ubuntu-22.04, windows-latest]

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -68,13 +70,13 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' || matrix.platform == 'ubuntu-20.04'
if: matrix.platform == 'ubuntu-22.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 frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use
run: npm install

- uses: tauri-apps/tauri-action@v0
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gcp-emulator-gui",
"private": true,
"version": "0.0.1",
"version": "0.1.0-alpha",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down

0 comments on commit 178471d

Please sign in to comment.