Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Release Binaries
name: Binaries

on:
push:
tags:
- "v*"
branches: ["master"]
tags: ["v*"]
pull_request:
branches: ["master"]
merge_group:

jobs:
release:
name: Release ${{ matrix.platform.project }} - ${{ matrix.platform.release_for }}
binaries:
name: ${{ matrix.platform.project }} - ${{ matrix.platform.release_for }}
if: github.event.pull_request.draft == false
strategy:
matrix:
Expand Down Expand Up @@ -136,13 +139,16 @@ jobs:
tar czvf ../../../${{ matrix.platform.name }} ${{ matrix.platform.bin }}
fi
cd -
- uses: ncipollo/release-action@v1
with:
artifacts: ${{ matrix.platform.name }}
allowUpdates: true
draft: true
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.bin }}-${{ matrix.platform.target }}
path: ${{ matrix.platform.name }}

- name: Release artifacts
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifacts: ${{ matrix.platform.name }}
allowUpdates: true
draft: true
44 changes: 0 additions & 44 deletions .github/workflows/build_chrome_plugin.yml

This file was deleted.

143 changes: 0 additions & 143 deletions .github/workflows/build_harper_binaries.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
merge_group:

jobs:
build:
build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
name: Release Chrome Plugin
name: Release Chrome Plugin

on:
push:
tags:
- "v*"
branches: ["master"]
tags: ["v*"]
pull_request:
branches: ["master"]
merge_group:

env:
CARGO_TERM_COLOR: always

jobs:
package:
release-chrome-plugin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,9 +28,9 @@ jobs:
- name: Install `wasm-pack`
run: cargo binstall wasm-pack --force --no-confirm
- name: Build Chrome Plugin
run: just build-chrome-plugin
run: just build-chrome-plugin
- name: Build Firefox Plugin
run: just build-firefox-plugin
run: just build-firefox-plugin
- name: Upload Chrome extension
uses: actions/upload-artifact@v4
with:
Expand All @@ -38,7 +41,9 @@ jobs:
with:
name: harper-firefox-plugin.zip
path: "packages/chrome-plugin/package/harper-firefox-plugin.zip"
- uses: ncipollo/release-action@v1
- name: Release artifacts
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
artifacts: "packages/chrome-plugin/package/*.zip"
allowUpdates: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Precommit
name: Just Checks

on:
push:
Expand All @@ -11,8 +11,22 @@ env:
CARGO_TERM_COLOR: always

jobs:
precommit:
just-checks:
runs-on: ubuntu-latest
name: just ${{ matrix.task }}
strategy:
matrix:
task:
[
check-rust,
check-js,
test-harperjs,
test-vscode,
test-chrome-plugin,
test-firefox-plugin,
test-obsidian,
build-obsidian,
]
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
Expand All @@ -37,7 +51,5 @@ jobs:
run: cargo binstall wasm-pack --force --no-confirm
- name: Install `cargo hack`
run: cargo binstall cargo-hack --force --no-confirm
- name: Run `cargo-hack`
run: cargo hack check --each-feature
- name: Precommit
run: just precommit
- name: Run `${{ matrix.task }}`
run: just ${{ matrix.task }}
67 changes: 0 additions & 67 deletions .github/workflows/package_vscode_plugin.yml

This file was deleted.

Loading