From 47b8e580ab97b2681c43f2c26cd24bd0c452d555 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 17 Jan 2024 01:56:44 +0100 Subject: [PATCH 1/3] this time for real --- .gitea/workflows/cargo-publish.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/cargo-publish.yaml b/.gitea/workflows/cargo-publish.yaml index 0380d71..44c62bd 100644 --- a/.gitea/workflows/cargo-publish.yaml +++ b/.gitea/workflows/cargo-publish.yaml @@ -14,9 +14,17 @@ 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: --registry cscherr registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }} # - uses: katyo/publish-crates@v2 # with: From b111619f17d18359616e92c884d42aaa9dc3c90a Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 17 Jan 2024 02:11:05 +0100 Subject: [PATCH 2/3] regular CI on push to not master --- .gitea/workflows/cargo.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/cargo.yaml b/.gitea/workflows/cargo.yaml index bd59079..394bf66 100644 --- a/.gitea/workflows/cargo.yaml +++ b/.gitea/workflows/cargo.yaml @@ -2,7 +2,8 @@ name: Cargo Check, Format, Fix and Test on: push: branches: - - devel + - '**' + - '!master' jobs: format: From efc7ea9214ace07f249bed5c0242ccdf53884371 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Wed, 17 Jan 2024 02:12:44 +0100 Subject: [PATCH 3/3] CI move token around --- .gitea/workflows/cargo-publish.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/cargo-publish.yaml b/.gitea/workflows/cargo-publish.yaml index 44c62bd..6c3a0d3 100644 --- a/.gitea/workflows/cargo-publish.yaml +++ b/.gitea/workflows/cargo-publish.yaml @@ -24,8 +24,7 @@ jobs: ' > ~/.cargo/config.toml - uses: katyo/publish-crates@v2 with: - args: --registry cscherr - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }} - # - uses: katyo/publish-crates@v2 - # with: - # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }} + args: --registry cscherr --token ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }} + #- uses: katyo/publish-crates@v2 + # with: + # args: --token ${{ secrets.CARGO_REGISTRY_TOKEN_CRATESIO }}