Skip to content

update the yml ci/cd workflow #1

update the yml ci/cd workflow

update the yml ci/cd workflow #1

Workflow file for this run

name: release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21.x']
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Display Go version
run: go version
- name: Build Progrom
run: go build
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: ./*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get the Release URL
run: echo "Release URL - ${{ steps.create_release.outputs.html_url }}"