Skip to content

Commit

Permalink
adding repo when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarsoo committed Jul 28, 2024
1 parent e1a6202 commit f8d773c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .gitea/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -46,11 +46,21 @@ jobs:
with:
toolchain: stable

- name: Add SarGit Repo
run: |
cat <<EOF > ~/.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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions dnstp-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dnstp-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions dnstp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f8d773c

Please sign in to comment.