2.20.0 #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
release: | |
types: [published] | |
jobs: | |
deploy: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: clippy | |
- name: Build | |
run: make build | |
- name: Build Release Mac | |
if: matrix.os == 'macos-latest' | |
run: make release-mac | |
- name: Build Release Linux | |
if: matrix.os == 'ubuntu-latest' | |
run: make release-linux | |
- name: Build Release Win | |
if: matrix.os == 'windows-latest' | |
run: make release-win | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
./release/*.tar.gz | |
./release/*.zip | |
./onefetch-setup.exe | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Bump homebrew-core formula | |
uses: mislav/bump-homebrew-formula-action@v3 | |
if: matrix.os == 'macos-latest' | |
env: | |
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }} | |
with: | |
formula-name: onefetch | |
- name: Publish executable to WinGet | |
uses: vedantmgoyal2009/winget-releaser@v2 | |
if: matrix.os == 'windows-latest' | |
with: | |
identifier: o2sh.onefetch | |
installers-regex: '\.exe$' | |
version: ${{ github.event.release.tag_name }} | |
token: ${{ secrets.WINGET_TOKEN }} |