Skip to content

Commit

Permalink
ci: 💚 Make the CI scripts more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Nov 25, 2023
1 parent 269fc8e commit 98f29b7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/tauri-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "publish"
name: "Test build on commit"
on:
push:
branches:
Expand All @@ -8,16 +8,20 @@ on:
jobs:
publish-tauri:
permissions:
contents: write
contents: read
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
platform:
- macos-latest
- ubuntu-20.04
- windows-latest

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup node
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -26,22 +30,17 @@ jobs:
with:
version: latest
run_install: true
- name: Install the Rust toolchain
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies on Ubuntu
if: matrix.platform == 'ubuntu-20.04'
if: ${{ startsWith(matrix.platform, 'ubuntu') }}
run: |
sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- id: tauri
name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: v__VERSION__-unreleased # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__-unreleased"
releaseBody: "**Full Changelog**: https://github.com/Jisu-Woniu/digital-signature/commits/main"
releaseDraft: true
prerelease: false
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/tauri-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "publish"
name: "Publish on new release"
on:
push:
tags:
Expand All @@ -12,12 +12,16 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-20.04, windows-latest]
platform:
- macos-latest
- ubuntu-20.04
- windows-latest

runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup node
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
Expand All @@ -26,13 +30,14 @@ jobs:
with:
version: latest
run_install: true
- name: Install the Rust toolchain
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies on Ubuntu
if: matrix.platform == 'ubuntu-20.04'
if: ${{ startsWith(matrix.platform, 'ubuntu') }}
run: |
sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- id: tauri
name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.

### Miscellaneous Tasks

- :green_heart: Make the CI scripts more specific.

## [1.0.1] - 2023-11-25

### Miscellaneous Tasks

- :page_facing_up: Add MIT license.
- :green_heart: Prevent overwriting build of previous releases.

Expand Down

0 comments on commit 98f29b7

Please sign in to comment.