Update go-version #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gridly Go | |
on: | |
push: | |
branches: [ main ] | |
tags: | |
- '*' | |
jobs: | |
build: | |
name: Full SDK and tools test | |
# Tests for actively maintained Go versions. | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
version: | |
- "1.21" | |
- "1.22" | |
- "1.23" | |
env: | |
RELEASE_VERSION: "" | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.version }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
# - name: Archive Artifact | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# # Artifact name | |
# name: com.gridly.go-sdk | |
# # A file, directory or wildcard pattern that describes what to upload | |
# path: .* | |
# retention-days: 1 | |
# if-no-files-found: error | |
- name: Get version | |
run: | | |
VER=$(cat VERSION) | |
echo "RELEASE_VERSION=$VER" >> $GITHUB_ENV | |
- name: Github Release | |
uses: softprops/action-gh-release@v1 | |
id: create_release | |
with: | |
draft: false | |
prerelease: true | |
tag_name: v${{ env.RELEASE_VERSION }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} |