Skip to content

Commit

Permalink
added publishing stages to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Mar 26, 2024
1 parent a250194 commit a69410e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
name: Build Docker Image

on:
workflow_dispatch:
release:
types: [published]

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<img src="static/preview.png" style="width: 500px; height: auto;" alt="snapshot"> <br>
<img src="https://github.com/hitblast/resfetch/blob/main/static/preview.png" style="width: 500px; height: auto;" alt="snapshot"> <br>

</div>

Expand Down

0 comments on commit a69410e

Please sign in to comment.