Skip to content

Commit 145bcd9

Browse files
authored
Feat: github actions cleanup (#6)
* fix: unify publish + release workflows * 2.3.0 * fix: add telegram bot, codeowners, PR template * fix: codeowners * fix: remove plugin builds * fix: move telegram notification action
1 parent c0a4549 commit 145bcd9

7 files changed

Lines changed: 76 additions & 65 deletions

File tree

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Global owners
2+
3+
* @Metasig/devs

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Summary
2+
3+
- One-line summary of the change and why it matters.
4+
5+
## Context
6+
7+
- Links: issue, ticket, or related PRs.
8+
9+
## Changes
10+
11+
- Short bullet list of the key changes made.
12+
13+
## Checklist
14+
15+
- [ ] Tests added/updated
16+
- [ ] Docs updated (if needed)
17+
18+
## Risks
19+
20+
- Brief note about possible risks or impact.
21+
22+
## How to test
23+
24+
- Short, reproducible steps to verify the change.
25+
z

.github/workflows/build.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,3 @@ jobs:
1717
sudo apt-get update
1818
sudo apt-get install -y libwebkit2gtk-4.1-dev
1919
- run: cargo build
20-
21-
build_android:
22-
name: build Android plugin
23-
runs-on: ubuntu-latest
24-
needs: cargo_build
25-
defaults:
26-
run:
27-
working-directory: ./android
28-
29-
steps:
30-
- uses: actions/checkout@v4
31-
- run: ./gradlew build
32-
33-
build_ios:
34-
name: build iOS plugin
35-
runs-on: ubuntu-latest
36-
needs: cargo_build
37-
defaults:
38-
run:
39-
working-directory: ./ios
40-
41-
steps:
42-
- uses: actions/checkout@v4
43-
- uses: swift-actions/setup-swift@v2
44-
- run: swift build

.github/workflows/publish.yaml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ name: publish
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
85

96
jobs:
107
publish_gh_packages:
@@ -33,6 +30,29 @@ jobs:
3330
run: pnpm install --frozen-lockfile
3431

3532
- name: pnpm publish
36-
run: pnpm publish --access restricted --publish-branch main --tag next
33+
run: pnpm publish --access restricted
3734
env:
3835
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
37+
release:
38+
needs: publish_gh_packages
39+
runs-on: ubuntu-latest
40+
41+
permissions:
42+
contents: write # publish a GitHub release
43+
issues: write # comment on released issues
44+
pull-requests: write # comment on released pull requests
45+
46+
steps:
47+
- uses: actions/checkout@v4
48+
with:
49+
fetch-depth: 0
50+
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version: "lts/*"
54+
55+
- name: semantic-release
56+
run: npx semantic-release@24
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-dry-run.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Telegram notification
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
telegram-bot:
9+
name: Telegram Bot
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Telegram Notify
13+
uses: appleboy/telegram-action@master
14+
with:
15+
to: ${{ secrets.TELEGRAM_TO }}
16+
token: ${{ secrets.TELEGRAM_TOKEN }}
17+
format: markdown
18+
disable_web_page_preview: true
19+
message: |
20+
${{ github.event.pull_request.draft && '📝 New draft PR' || '🔔 New PR' }} by: *${{ github.event.pull_request.user.login }}*
21+
*${{ github.event.pull_request.title }}*
22+
🔍 ${{ github.event.pull_request.html_url }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metasig/tauri-plugin-keystore-api",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"author": "0x330a",
55
"description": "Interact with the device-native key storage (Android Keystore, iOS Keychain) & perform ecdh operations for generating symmetric keys",
66
"type": "module",
@@ -36,4 +36,4 @@
3636
"type": "git",
3737
"url": "git+https://github.com/Metasig/tauri-plugin-keystore.git"
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)