From 1147575dc031f396c20b2ba04b1039f4fd66e419 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 17 Jan 2024 01:25:18 +0100 Subject: [PATCH 1/2] only publish in master --- .gitea/workflows/cargo-publish.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.gitea/workflows/cargo-publish.yaml b/.gitea/workflows/cargo-publish.yaml index bfd0798..b3c9e2a 100644 --- a/.gitea/workflows/cargo-publish.yaml +++ b/.gitea/workflows/cargo-publish.yaml @@ -14,11 +14,6 @@ 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 \ -- 2.40.1 From f2af0bc32316b1d3eae8ffc8e584002f71839998 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 17 Jan 2024 01:34:45 +0100 Subject: [PATCH 2/2] this time it will work --- .gitea/workflows/cargo-publish.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/cargo-publish.yaml b/.gitea/workflows/cargo-publish.yaml index b3c9e2a..6567909 100644 --- a/.gitea/workflows/cargo-publish.yaml +++ b/.gitea/workflows/cargo-publish.yaml @@ -14,10 +14,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - 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 }} -- 2.40.1