Skip to content

Release

Release #106

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Go version to build ("1.21")'
required: true
prerelease:
description: 'Is this a pre-release?'
required: true
default: 'false'
jobs:
build:
strategy:
matrix:
include:
- builder: macos-latest
goos: darwin
goarch: arm64
- builder: macos-latest
goos: darwin
goarch: amd64
- builder: ubuntu-20.04
goos: linux
goarch: amd64
- builder: ubuntu-20.04
goos: linux
goarch: arm64
- builder: windows-latest
goos: windows
goarch: amd64
runs-on: ${{ matrix.builder }}
outputs:
built_version: ${{ steps.encore_go_version.outputs.version }}
steps:
- name: Check out repo
uses: actions/checkout@v2
with:
fetch-depth: 0 # We need the full history for the Go submodule
submodules: true # Checkout the Go submodule
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: 'Create patched runtime'
run: bash ./apply_patch.bash "${{ github.event.inputs.version }}"
- name: Build
run: go run . -dst=dist -goos=${{ matrix.goos }} -goarch=${{ matrix.goarch }} -upload=true
env:
ENCORE_RELEASER_GCS_KEY: ${{ secrets.ENCORE_RELEASER_GCS_KEY }}
GO111MODULE: "on"