Skip to content

Commit 0c0f6bb

Browse files
committed
updated release and docs actions
1 parent 743278f commit 0c0f6bb

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,6 @@ jobs:
4242
- name: Build documentation
4343
run: cargo doc --all-features --no-deps
4444

45-
- name: Deploy to GitHub Pages
46-
if: github.ref == 'refs/heads/main'
47-
uses: peaceiris/actions-gh-pages@v4
48-
with:
49-
github_token: ${{ secrets.GITHUB_TOKEN }}
50-
publish_dir: ./target/doc
51-
force_orphan: true
52-
5345
docs_rs_check:
5446
name: Check docs.rs compatibility
5547
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,19 @@ jobs:
4040
path: target
4141
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
4242

43-
- name: Check formatting
44-
run: cargo fmt --all -- --check
45-
46-
- name: Run clippy
47-
run: cargo clippy --all-targets --all-features -- -D warnings
48-
49-
- name: Build
50-
run: cargo build --verbose
51-
52-
- name: Run tests
53-
run: cargo test --verbose
54-
55-
- name: Run tests with all features
56-
run: cargo test --all-features --verbose
43+
- name: Set up mise
44+
run: |
45+
curl https://mise.run | sh
46+
echo "$HOME/.local/share/mise/bin" >> $GITHUB_PATH
47+
echo "$HOME/.local/share/mise/shims" >> $GITHUB_PATH
48+
MISE="$HOME/.local/bin/mise"
49+
$MISE trust -y
50+
$MISE install -y
51+
$MISE reshim
52+
$HOME/.local/share/mise/shims/hk install --mise
53+
54+
- name: Run hk ci workflow
55+
run: $HOME/.local/share/mise/shims/hk run ci
5756

5857
build:
5958
name: Build Release Binaries

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "submod"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
edition = "2024"
55
rust-version = "1.87"
66
description = "Git submodule manager with sparse checkout support using gitoxide"

0 commit comments

Comments
 (0)