Fix: workflow format and init go

pull/1/head v0.1.1
zijiren233 2 years ago
parent fe9df9167f
commit c6efeae384

@ -2,9 +2,9 @@ name: build
on: on:
push: push:
branches: [ 'main' ] branches: ["main"]
pull_request: pull_request:
branches: [ 'main' ] branches: ["main"]
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
@ -16,10 +16,15 @@ jobs:
strategy: strategy:
matrix: matrix:
platform: [ubuntu-latest] platform: [ubuntu-latest]
go-version: [ '1.21' ] go-version: ["1.21"]
name: Build name: Build
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3

@ -3,7 +3,7 @@ name: release
on: on:
push: push:
tags: tags:
- 'v*' - "v*"
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -14,10 +14,15 @@ jobs:
strategy: strategy:
matrix: matrix:
platform: [ubuntu-latest] platform: [ubuntu-latest]
go-version: [ '1.21' ] go-version: ["1.21"]
name: Release name: Release
runs-on: ${{ matrix.platform }} runs-on: ${{ matrix.platform }}
steps: steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3

Loading…
Cancel
Save