Skip to content

Commit b6e6429

Browse files
committed
WIP: deploy update
1 parent 8d427b6 commit b6e6429

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,19 @@ jobs:
3939
if: github.ref == 'refs/heads/beta'
4040
run: echo "BETA=true" >> $GITHUB_ENV
4141

42-
- name: Use scripts and templates from master branch
42+
- name: Use deploy script from master branch
4343
run: |
4444
git fetch --no-tags --prune --depth=1 origin master
45-
git checkout origin/master -- .github/deploy.sh util/gh-pages/ util/*.py
45+
git checkout origin/master -- .github/deploy.sh
46+
47+
- name: cargo update
48+
run: cargo update
49+
50+
- name: Cache
51+
uses: Swatinem/rust-cache@v1
52+
53+
- name: cargo collect-metadata
54+
run: cargo collect-metadata
4655

4756
- name: Deploy
4857
run: |

clippy_lints/src/utils/internal_lints/metadata_collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use clippy_utils::{
3232
};
3333

3434
/// This is the output file of the lint collector.
35-
const OUTPUT_FILE: &str = "../util/gh-pages/metadata_collection.json";
35+
const OUTPUT_FILE: &str = "../util/gh-pages/lints.json";
3636
/// These lints are excluded from the export.
3737
const BLACK_LISTED_LINTS: [&str; 3] = ["lint_author", "deep_code_inspection", "internal_metadata_collector"];
3838
/// These groups will be ignored by the lint group matcher. This is useful for collections like

tests/dogfood.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ fn run_metadata_collection_lint() {
183183
use std::time::SystemTime;
184184

185185
// Setup for validation
186-
let metadata_output_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("util/gh-pages/metadata_collection.json");
186+
let metadata_output_path = PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("util/gh-pages/lints.json");
187187
let start_time = SystemTime::now();
188188

189189
// Run collection as is

0 commit comments

Comments
 (0)