Merge pull request #587 from overmindtech/fix_lint #409
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: goreleaser-release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
# Actually release the binaries including signing them | |
release: | |
runs-on: depot-ubuntu-22.04-8 | |
if: ${{ github.event_name != 'pull_request' }} | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Go Init | |
uses: ./.github/actions/go_init | |
with: | |
cache: true | |
- run: go run main.go --version | |
- name: Run GoReleaser (publish) | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Used to create PRs on the Winget repo | |
WINGET_TOKEN: ${{ secrets.WINGET_TOKEN }} | |
- name: Install cloudsmith CLI | |
run: | | |
pip install --upgrade cloudsmith-cli | |
- name: Upload packages to cloudsmith | |
run: | | |
for i in dist/*.apk; do | |
cloudsmith push alpine overmind/tools/alpine/any-version $i | |
done | |
for i in dist/*.deb; do | |
cloudsmith push deb overmind/tools/any-distro/any-version $i | |
done | |
for i in dist/*.rpm; do | |
cloudsmith push rpm overmind/tools/any-distro/any-version $i | |
done | |
env: | |
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} | |
bump-formula: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'pull_request' }} | |
steps: | |
- name: Update Homebrew formula | |
uses: dawidd6/action-homebrew-bump-formula@v3 | |
with: | |
# Required, custom personal GitHub access token with only the 'public_repo' scope enabled | |
token: ${{secrets.CUSTOM_PERSONAL_ACCESS_TOKEN}} | |
# Bump all outdated formulae in this tap | |
tap: overmindtech/homebrew-overmind | |
# Bump only these formulae if outdated | |
formula: overmind-cli | |
# Need to set this input if want to use `brew livecheck` | |
livecheck: true | |
user_name: CLI Release Bot | |
user_email: [email protected] | |