Redesign CLI for DR to not take cluster name when not required (#262) #76
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: release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
- | |
name: Unshallow | |
run: git fetch --prune --unshallow | |
- | |
name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- | |
name: Configure SSH key | |
run: | | |
mkdir -p ~/.ssh | |
echo '${{ secrets.GO_CLIENT_SECRET }}' > ~/.ssh/id_ed25519 | |
sudo chmod 0400 ~/.ssh/id_ed25519 | |
git config --global url."[email protected]:".insteadOf https://github.com/ | |
- | |
name: Run GoReleaser | |
uses: goreleaser/[email protected] | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- | |
name: Clean upSSH key | |
run: | | |
sudo rm -rf ~/.ssh/id_ed25519 |