Skip to content

add ci

add ci #1

Workflow file for this run

name: Go
on:
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: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
name: Release ${{ github.ref }}
files: |
gclone
draft: false
prerelease: false