Skip to content

Update the license description #19

Update the license description

Update the license description #19

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build_and_release:
name: Build for Multiple Platforms and Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Get the latest tag
id: get_latest_tag
run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_ENV
- name: Build for Linux, Windows, macOS using Makefile
run: make all
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "release/gama-linux-amd64,release/gama-windows-amd64.exe,release/gama-macos-amd64,release/gama-macos-arm64"
token: ${{ secrets.GIT_TOKEN }}
draft: true
# Docker build and push steps
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/gama:${{ env.LATEST_TAG }}
${{ secrets.DOCKER_USERNAME }}/gama:latest
build-args: |
TERM=xterm-256color