Skip to content

Merge pull request #102 from ralphbean/main #17

Merge pull request #102 from ralphbean/main

Merge pull request #102 from ralphbean/main #17

Workflow file for this run

name: Build TASH
"on":
pull_request:
branches:
- main
paths:
- 'tash/**'
push:
branches:
- main
paths:
- 'tash/**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
disable-telemetry: true
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Go environment
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: tash/go.mod
cache: false
- name: Test
working-directory: tash
run: go test
- name: Build
working-directory: tash
run: go build
- name: Release
if: ${{ github.ref == 'refs/heads/main' }}
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v2.0.6
with:
make_latest: true
name: Latest release
body: Stable rolling release
tag_name: latest
generate_release_notes: false
files: tash/tash