Skip to content

Commit 31599ec

Browse files
committed
ci: Fix release workflow and build
1 parent 3eec76e commit 31599ec

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: Create deb package
9292
uses: actions-rs/cargo@v1
93-
if: matrix.target != "x86_64-unknown-linux-musl"
93+
if: ${{ matrix.target != 'x86_64-unknown-linux-musl' }}
9494
with:
9595
command: deb
9696
args: --variant deno
@@ -197,6 +197,12 @@ jobs:
197197
run: |
198198
cargo package --list --allow-dirty
199199
200+
- name: Build package and publish with --dry-run argument
201+
if: startsWith(github.ref, 'refs/tags/test-release-')
202+
run: |
203+
cargo publish --dry-run --verbose
204+
205+
200206
- name: Build package and publish the crate to crates.io
201207
if: startsWith(github.ref, 'refs/tags/v')
202208
run: |

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ readme = "README.md"
1111
homepage = "https://github.com/devrc-hub/devrc"
1212
repository = "https://github.com/devrc-hub/devrc"
1313

14-
include = ["src/**/*", "Cargo.toml", "LICENSE", "README.md", "CHANGELOG.md"]
14+
include = ["src/**/*", "Cargo.toml", "LICENSE", "README.md", "CHANGELOG.md", "build.rs"]
1515

1616
build = "build.rs"
1717

0 commit comments

Comments
 (0)