Skip to content

Commit

Permalink
fix the release
Browse files Browse the repository at this point in the history
  • Loading branch information
penndev committed Nov 25, 2023
1 parent 20e6c97 commit 4b1a101
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,27 @@ name: release

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
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: Checkout Code
uses: actions/checkout@v2
- 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 }}"

0 comments on commit 4b1a101

Please sign in to comment.