Skip to content

Commit 4079842

Browse files
committed
Re enable crate publishing in release workflow
1 parent 464c431 commit 4079842

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ jobs:
2727
file: crates/lune/Cargo.toml
2828
field: package.version
2929

30-
# dry-run:
31-
# name: Dry-run
32-
# needs: ["init"]
33-
# runs-on: ubuntu-latest
34-
# steps:
35-
# - name: Checkout repository
36-
# uses: actions/checkout@v4
37-
38-
# - name: Install Rust
39-
# uses: dtolnay/rust-toolchain@stable
40-
41-
# - name: Publish (dry-run)
42-
# uses: katyo/publish-crates@v2
43-
# with:
44-
# dry-run: true
45-
# check-repo: true
46-
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
30+
dry-run:
31+
name: Dry-run
32+
needs: ["init"]
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
38+
- name: Install Rust
39+
uses: dtolnay/rust-toolchain@stable
40+
41+
- name: Publish (dry-run)
42+
uses: katyo/publish-crates@v2
43+
with:
44+
dry-run: true
45+
check-repo: true
46+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4747

4848
build:
4949
needs: ["init"] # , "dry-run"]
@@ -139,20 +139,20 @@ jobs:
139139
files: ./releases/*.zip
140140
draft: true
141141

142-
# release-crates:
143-
# name: Release (crates.io)
144-
# runs-on: ubuntu-latest
145-
# needs: ["init", "dry-run", "build"]
146-
# steps:
147-
# - name: Checkout repository
148-
# uses: actions/checkout@v4
149-
150-
# - name: Install Rust
151-
# uses: dtolnay/rust-toolchain@stable
152-
153-
# - name: Publish crates
154-
# uses: katyo/publish-crates@v2
155-
# with:
156-
# dry-run: false
157-
# check-repo: true
158-
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
142+
release-crates:
143+
name: Release (crates.io)
144+
runs-on: ubuntu-latest
145+
needs: ["init", "dry-run", "build"]
146+
steps:
147+
- name: Checkout repository
148+
uses: actions/checkout@v4
149+
150+
- name: Install Rust
151+
uses: dtolnay/rust-toolchain@stable
152+
153+
- name: Publish crates
154+
uses: katyo/publish-crates@v2
155+
with:
156+
dry-run: false
157+
check-repo: true
158+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)