From a69410ee9a3442c2a90f1c25781d64b16ac1f316 Mon Sep 17 00:00:00 2001 From: HitBlast Date: Tue, 26 Mar 2024 14:02:59 +0600 Subject: [PATCH] added publishing stages to workflows --- .github/workflows/image.yml | 1 + .github/workflows/release.yml | 11 +++++++++++ README.md | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 3b89947..f61123a 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -3,6 +3,7 @@ name: Build Docker Image on: + workflow_dispatch: release: types: [published] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8b1b19..076672a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,3 +52,14 @@ jobs: name: resfetch-${{ matrix.os }} path: target/release/resfetch retention-days: 90 + + publish: + needs: [build-win, build-unix] + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Publish using cargo + run: cargo publish --token ${{ secrets.CRATES_TOKEN }} diff --git a/README.md b/README.md index f3d2ac3..4110e95 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Test Builds](https://github.com/hitblast/resfetch/actions/workflows/build.yml/badge.svg)](https://github.com/hitblast/resfetch/actions/workflows/build.yml) [![Release Builds](https://github.com/hitblast/resfetch/actions/workflows/release.yml/badge.svg)](https://github.com/hitblast/resfetch/actions/workflows/release.yml) -snapshot
+snapshot