Skip to content

cover password in stars #22

cover password in stars

cover password in stars #22

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "main" ]
tags:
- "v*.*.*"
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build Linux AMD64
run: GOOS=linux GOARCH=amd64 go build -o shellyctl_linux_amd64
- name: Build Linux ARM64
run: GOOS=linux GOARCH=arm64 go build -o shellyctl_linux_arm64
- name: Build Windows AMD64
run: GOOS=windows GOARCH=amd64 go build -o shellyctl_windows_arm64
- name: Test
run: go test -v ./...
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_REPOSITORY: jcodybaker/shellyctl
with:
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
files: |
shellyctl_linux_amd64
shellyctl_linux_arm64
shellyctl_windows_arm64