Skip to content

ci: DO-2153 Create Artifacts for PR #11

ci: DO-2153 Create Artifacts for PR

ci: DO-2153 Create Artifacts for PR #11

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
binary: [lavad, lavap, lavavisor]
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.20.5
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: build --single-target --snapshot --clean
workdir: cmd/${{ matrix.binary }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.binary }}
path: cmd/${{ matrix.binary }}/dist/*