Skip to content

Commit 0a9af43

Browse files
committed
fix(ci): deploy and update deps
Signed-off-by: Lachezar Lechev <[email protected]>
1 parent 0076ca5 commit 0a9af43

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/deploy.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
- uses: actions/setup-node@v3
2222
with:
2323
node-version: 18
@@ -35,16 +35,14 @@ jobs:
3535
with:
3636
file-url: 'https://static.crates.io/db-dump.tar.gz'
3737
location: './.tmp'
38-
- uses: actions-rs/toolchain@v1
39-
with:
40-
toolchain: stable
38+
- uses: dtolnay/rust-toolchain@stable
4139
- name: Run crates.io DB dump scraper
4240
uses: actions-rs/cargo@v1
4341
with:
4442
command: run
4543
# args: --release --all-features
4644
- name: Build Zola and deploy
47-
uses: shalzz/zola-deploy-action@v0.17.0
45+
uses: shalzz/zola-deploy-action@v0.19.2
4846
env:
4947
# Target branch
5048
PAGES_BRANCH: gh-pages

scraper/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ edition = "2021"
88

99
[dependencies]
1010
# for binary
11-
env_logger = "0.10"
11+
env_logger = "0.11"
1212

1313
anyhow = "1.0"
1414

1515
chrono = {version = "0.4", features = ["serde"]}
1616
clap = {version = "4", features = ["derive", "cargo"]}
17-
db-dump = {version = "0.4"}
17+
db-dump = {version = "0.7"}
1818
log = "0.4"
19-
octocrab = "0.32"
19+
octocrab = "0.41"
2020

2121
serde = {version = "1", features = ["derive"]}
2222
serde_json = "1.0"

scraper/src/data.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ impl From<&crates::Row> for CrateData {
5959
fn from(row: &crates::Row) -> Self {
6060
Self {
6161
name: row.name.clone(),
62-
downloads: row.downloads,
62+
// todo:fix
63+
downloads: 0,
6364
description: row.description.clone(),
6465
homepage: row.homepage.clone(),
6566
documentation: row.documentation.clone(),

0 commit comments

Comments
 (0)