Skip to content

Commit a37a5d8

Browse files
committed
chore: try split aur release
1 parent e7e0a5f commit a37a5d8

File tree

4 files changed

+39
-20
lines changed

4 files changed

+39
-20
lines changed

Diff for: .github/workflows/covector-version-or-publish.yml

+2-18
Original file line numberDiff line numberDiff line change
@@ -143,23 +143,7 @@ jobs:
143143
release-aur:
144144
needs: [release-tauri, version-or-publish]
145145
if: needs.version-or-publish.outputs.successfulPublish
146-
name: Publish to AUR
147-
runs-on: ubuntu-latest
148146
steps:
149-
- uses: actions/checkout@v4
150-
- uses: pnpm/action-setup@v4
151-
name: Install pnpm
152-
with:
153-
version: 9
154-
run_install: false
155-
- name: Setup Node.js 20
156-
uses: actions/setup-node@v4
147+
- uses: ./release-aur.yml
157148
with:
158-
node-version: 20
159-
cache: "pnpm"
160-
- name: Install dependencies
161-
run: pnpm install
162-
- name: Publish to AUR
163-
run: pnpm publish:aur --version ${{ needs.version-or-publish.outputs.version }}
164-
env:
165-
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
149+
version: ${{ needs.version-or-publish.outputs.version }}

Diff for: .github/workflows/release-aur.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish to AUR
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- alpha
8+
workflow_dispatch:
9+
10+
inputs:
11+
version:
12+
description: "Release version"
13+
required: true
14+
15+
jobs:
16+
release-aur:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: pnpm/action-setup@v4
21+
name: Install pnpm
22+
with:
23+
version: 9
24+
run_install: false
25+
- name: Setup Node.js 20
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 20
29+
cache: "pnpm"
30+
- name: Install dependencies
31+
run: pnpm install
32+
- name: Publish to AUR
33+
run: pnpm publish:aur --version ${{ inputs.version }}
34+
env:
35+
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}

Diff for: scripts/release-aur.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const releaseAur = defineCommand({
9999
execSync(`ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts`);
100100
}
101101
} else {
102-
execSync(`ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts`);
102+
execSync(`ssh-keyscan -H aur.archlinux.org > ~/.ssh/known_hosts`);
103103
}
104104

105105
// Clone AUR repository if not exists

Diff for: src-tauri/Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)