Skip to content

update readme

update readme #12

Workflow file for this run

name: Build remove-branches CLI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Build application
if: matrix.os != 'windows-latest'
run: |
go build -o git-remove-branches main.go
- name: Build application
if: matrix.os == 'windows-latest'
run: |
go build -o git-remove-branches.exe main.go
- name: Archive production artifacts
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v4
with:
name: remove-branches-linux
path: git-remove-branches
- name: Archive production artifacts
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v4
with:
name: remove-branches-macos
path: git-remove-branches
- name: Archive production artifacts
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v4
with:
name: remove-branches-windows
path: git-remove-branches.exe