diff --git a/.gitea/workflows/cargo-publish.yaml b/.gitea/workflows/cargo-publish.yaml index 0380d71..29c460b 100644 --- a/.gitea/workflows/cargo-publish.yaml +++ b/.gitea/workflows/cargo-publish.yaml @@ -14,9 +14,18 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - run: | + mkdir -p ~/.cargo/ + echo -e '[registry] + cscherr= "cscherr" + + [registries.cscherr] + index = "sparse+https://git.cscherr.de/api/packages/PlexSheep/cargo/" + ' > ~/.cargo/config.toml - uses: katyo/publish-crates@v2 with: - args: --index "https://git.cscherr.de/PlexSheep/_cargo-index.git" + args: --index "https://git.cscherr.de/PlexSheep/_cargo-index.git" \ + --registry cscherr registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }} # - uses: katyo/publish-crates@v2 # with: