diff --git a/.gitea/workflows/cargo-publish.yaml b/.gitea/workflows/cargo-publish.yaml index bfd0798..6567909 100644 --- a/.gitea/workflows/cargo-publish.yaml +++ b/.gitea/workflows/cargo-publish.yaml @@ -14,15 +14,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo check --all-features --all-targets - - run: rustup component add rustfmt - - run: cargo fix --all-features --all-targets - - run: cargo fmt --all - - run: cargo test --all-features --all-targets - - run: | - for CRATE in {libpt-log,libpt-core,libpt-math,libpt-ccc,libpt-bintols,libpt-hedu,libpt-net,libpt-bin,libpt}; do - cargo publish \ - --index "https://git.cscherr.de/PlexSheep/_cargo-index.git" \ - -p $CRATE - ; - done + - uses: katyo/publish-crates@v2 + with: + args: --index "https://git.cscherr.de/PlexSheep/_cargo-index.git" + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN_CSCHERRDE }} + # - uses: katyo/publish-crates@v2 + # with: + # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }}