Skip to content

Commit 9d106c6

Browse files
committed
Add publish script
1 parent fb637fd commit 9d106c6

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*'
6+
7+
jobs:
8+
publish:
9+
if: github.repository == 'rquickjs/rquickjs-module'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Setup Rust
16+
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
17+
with:
18+
toolchain: stable
19+
20+
- name: Publish crates
21+
uses: katyo/publish-crates@c9f6fdb4620c98d491ffaa6e563cb87388bd6ece
22+
with:
23+
registry-token: ${{ secrets.CRATES_TOKEN }}
24+
no-verify: true

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rquickjs-module"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
edition = "2021"
55

66
[dependencies]

0 commit comments

Comments
 (0)