adding cargo publish
Some checks failed
test and deploy / Build WASM (push) Failing after 9m44s
test and deploy / Package Library (push) Has been skipped
test and deploy / Package Container (push) Has been skipped
test and deploy / Build Native (push) Failing after 9m57s

This commit is contained in:
Andy Pack 2024-07-28 14:39:58 +01:00
parent b15d7b5c38
commit 984d0faa78
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

View File

@ -56,6 +56,48 @@ jobs:
run: cargo build run: cargo build
working-directory: ./draught working-directory: ./draught
publishLib:
runs-on: ubuntu-latest
name: Package Library
needs: [ build-web ] # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
github-server-url: https://gitea.sheep-ghoul.ts.net
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Add SarGit Repo
run: |
cat <<EOF > ~/.cargo/config.toml
[registry]
default = "sargit"
[registries.sargit]
index = "sparse+https://git.sarsoo.xyz/api/packages/${{ secrets.DOCKERHUB_USERNAME }}/cargo/"
[net]
git-fetch-with-cli = true
EOF
- name: Add SarGit Credentials
run: |
cat <<EOF > ~/.cargo/credentials.toml
[registries.sargit]
token = "Bearer ${{ secrets.DOCKERHUB_TOKEN }}"
EOF
- name: Cargo Publish
uses: actions-rs/cargo@v1
with:
command: publish
args: --package draughtlib
package: package:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Package Container name: Package Container