Skip to content

Commit ff00d57

Browse files
committed
upload-spm, upload-cargo
1 parent 5dfe181 commit ff00d57

File tree

3 files changed

+19
-55
lines changed

3 files changed

+19
-55
lines changed

.github/workflows/release.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@ jobs:
171171
with:
172172
name: sqlite-regex-windows-wheels
173173
path: dist/release/wheels/*.whl
174+
upload-crate:
175+
runs-on: ubuntu-latest
176+
steps:
177+
- uses: actions/checkout@v2
178+
- uses: actions-rs/toolchain@v1
179+
with:
180+
toolchain: stable
181+
- run: cargo publish
182+
env:
183+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
174184
upload-extensions:
175185
name: Upload release assets
176186
needs:
@@ -185,15 +195,17 @@ jobs:
185195
runs-on: ubuntu-latest
186196
steps:
187197
- uses: actions/checkout@v2
188-
- name: Download workflow artifacts
189-
uses: actions/download-artifact@v2
190-
- run: npm install tar-fs
191-
- uses: actions/github-script@v6
198+
- uses: actions/download-artifact@v2
199+
- uses: asg017/upload-spm@main
200+
id: upload-spm
192201
with:
202+
name: sqlite-regex
193203
github-token: ${{ secrets.GITHUB_TOKEN }}
194-
script: |
195-
const script = require('.github/workflows/upload.js')
196-
await script({github, context})
204+
platforms: |
205+
linux-x86_64: sqlite-regex-ubuntu/*
206+
macos-x86_64: sqlite-regex-macos/*
207+
macos-aarch64: sqlite-regex-macos-arm/*
208+
windows-x86_64: sqlite-regex-windows/*
197209
upload-deno:
198210
name: Upload Deno release assets
199211
needs:

.github/workflows/upload.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ version = "0.2.3-alpha.7"
44
edition = "2021"
55

66
[dependencies]
7-
#sqlite-loadable = {path="../sqlite-loadable-rs"}
87
sqlite-loadable = "0.0.5"
98
regex = "1"
109

0 commit comments

Comments
 (0)