This commit is contained in:
7
.cargo/config.toml
Normal file
7
.cargo/config.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[registry]
|
||||
default = "gitea"
|
||||
|
||||
[registries.gitea]
|
||||
global-credential-providers = ["cargo:token"]
|
||||
index = "sparse+https://woggioni.net/gitea/api/packages/woggioni/cargo/"
|
||||
|
19
.gitea/workflows/build.yaml
Normal file
19
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: woryzen
|
||||
steps:
|
||||
- name: Checkout sources
|
||||
uses: https://github.com/RouxAntoine/checkout@v3.5.4
|
||||
- run: rustup toolchain install stable --profile minimal
|
||||
- name: Setup Cargo
|
||||
uses: Swatinem/rust-cache@v2
|
||||
- name: Execute Cargo build
|
||||
env:
|
||||
CARGO_REGISTRIES_GITEA_TOKEN: Bearer ${{ secrets.PUBLISHER_TOKEN }}
|
||||
run: |
|
||||
cargo build --release
|
||||
cargo publish
|
Reference in New Issue
Block a user