Skip to content

Add package browser UI #4

Add package browser UI

Add package browser UI #4

Workflow file for this run

on:
push:
branches:
- master
tags:
- v*
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
npm ci
- name: Build
run: |
mkdir -p ./coffee-beans
cp coffee-beans.yaml ./coffee-beans
npm run build
go build -o ./coffee-beans/coffee-beans -tags=release -ldflags "-X main.version=${GITHUB_REF#refs/*/} -X main.commit=${GITHUB_SHA}"
- name: Test
run: |
go test -v ./...
- name: Package
run: |
tar -czf coffee-beans.tar.gz ./coffee-beans
- name: Release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/tags/v*'
with:
files: coffee-beans.tar.gz