diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 37e1591..5243b93 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: + with: github-server-url: https://gitea.sheep-ghoul.ts.net - name: Install Rust @@ -46,11 +46,21 @@ jobs: with: toolchain: stable + - name: Add SarGit Repo + run: | + cat < ~/.cargo/config.toml + [registry] + default = "sargit" + + [registries.sargit] + index = "sparse+https://git.lab.sarsoo.xyz/api/packages/sarsoo/cargo/" + EOF + - name: Cargo Publish uses: actions-rs/cargo@v1 with: command: publish - args: --manifest-path ./dnstp --registry sparse+https://git.lab.sarsoo.xyz/api/packages/${{ secrets.DOCKERHUB_USERNAME }}/cargo/ --token ${{ secrets.DOCKERHUB_TOKEN }} + args: --token ${{ secrets.DOCKERHUB_TOKEN }} package: runs-on: ubuntu-latest @@ -59,7 +69,7 @@ jobs: if: github.event_name == 'push' && github.ref == 'refs/heads/master' steps: - uses: actions/checkout@v4 - with: + with: github-server-url: https://gitea.sheep-ghoul.ts.net - name: Set up Docker Buildx diff --git a/dnstp-client/Cargo.toml b/dnstp-client/Cargo.toml index c88304f..f7619ac 100644 --- a/dnstp-client/Cargo.toml +++ b/dnstp-client/Cargo.toml @@ -2,6 +2,7 @@ name = "dnstp-client" version = "0.1.0" edition = "2021" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/dnstp-server/Cargo.toml b/dnstp-server/Cargo.toml index 142961b..079f0b2 100644 --- a/dnstp-server/Cargo.toml +++ b/dnstp-server/Cargo.toml @@ -2,6 +2,7 @@ name = "dnstp" version = "0.1.0" edition = "2021" +publish = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/dnstp/Cargo.toml b/dnstp/Cargo.toml index 22f5c77..9910988 100644 --- a/dnstp/Cargo.toml +++ b/dnstp/Cargo.toml @@ -2,6 +2,7 @@ name = "dnstplib" version = "0.1.0" edition = "2021" +publish = ["sargit"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html