From c76cb8196bc21714a1cf8f6f4f7250c179800ecb Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Tue, 20 Aug 2024 12:02:07 +0200 Subject: [PATCH] Add publish pipeline --- .gitea/workflows/publish.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..c64fd03 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,26 @@ +name: Cargo Build & Test + +on: + push: + branches: + - main + +jobs: + can-publish: + container: git.kjan.de/actions/rust-node + name: Test publish + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: ⚡ Cache + uses: https://git.kjan.de/actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target/release/deps + target/release/build + target + key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-loadstar + - run: cargo login ${{ secrets.CRATES_IO_TOKEN }} + - run: cargo publish