Skip to content

Commit

Permalink
Add publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Nov 24, 2024
1 parent fb637fd commit 9d106c6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
if: github.repository == 'rquickjs/rquickjs-module'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Rust
uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa
with:
toolchain: stable

- name: Publish crates
uses: katyo/publish-crates@c9f6fdb4620c98d491ffaa6e563cb87388bd6ece
with:
registry-token: ${{ secrets.CRATES_TOKEN }}
no-verify: true
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rquickjs-module"
version = "0.1.0"
version = "0.0.1"
edition = "2021"

[dependencies]
Expand Down

0 comments on commit 9d106c6

Please sign in to comment.