1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| name: Actions Name on: push: tags: - 'v*' permissions: contents: write env: PROJECT_NAME: ${{github.event.repository.name}} BUILD_DATE: ${{github.ref_name}}-${{github.run_id}} jobs: build: name: Build and Release runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go uses: actions/setup-go@v5 with: go-version-file: 'go.mod' cache: true - name: Get dependencies run: go mod download - name: Prepare Release Directory run: mkdir -p release - name: Build Linux AMD64 run: > GOOS=linux GOARCH=amd64 go build -o release/${{env.PROJECT_NAME}}_${{env.BUILD_DATE}}_linux_amd64 - name: Build linux ARM64 run: >
|