Skip to content

Updated README

Updated README #103

Workflow file for this run

name: binaries
on:
workflow_dispatch:
push:
branches:
tags:
env:
go_version: 1.18.5
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.go_version }}
- run: echo "IMAGE_TAG=dev" >> $GITHUB_ENV
if: ${{ github.ref_name }} == 'main'
- run: echo "IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
if: startsWith(github.ref, 'refs/tags/v')
- run: sudo apt-get update -y && sudo apt-get install -y rsync
- name: build
id: build
run: |
cd avalanchego
./scripts/build.sh
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: dist-bin
path: |
avalanchego/build