Git repository summary in your terminal
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

64 lines
1.6 KiB

name: CD
on:
release:
types: [released]
jobs:
deploy:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
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@v1
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@v1
if: matrix.os == 'macos-latest'
env:
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
with:
formula-name: onefetch
- name: Publish executable to WinGet
uses: vedantmgoyal2009/winget-releaser@latest
if: matrix.os == 'windows-latest'
with:
identifier: o2sh.onefetch
installers-regex: '\.exe$'
delete-previous-version: 'true'
token: ${{ secrets.WINGET_TOKEN }}