Skip to content

allow ci triggered manully #3

allow ci triggered manully

allow ci triggered manully #3

Workflow file for this run

name: Go
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Test
run: go test -v ./...
- name: Build
run: |
go build -o goclone
chmod a+x ./goclone
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: goclone
path: ./goclone
release:
name: Create and upload release
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Download linux artifacts
uses: actions/download-artifact@v4
with:
merge-multiple: true
- name: Info
run: |
echo ${{ github.ref }}
ls -al
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref }}
tag_name: ${{ github.ref }}
files: |
gclone
draft: false
prerelease: false