Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Add apache license.

Add apache license. #6

Workflow file for this run

name: ShapeBlock Installer CI/CD
on:
push:
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Build
run: make build
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
VERSION: ${{ github.ref_name }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: shapeblock-installer
path: bin/
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: shapeblock-installer
path: bin/
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
bin/shapeblock-installer
bin/shapeblock-installer-linux-amd64