Skip to content

gpu(darwin): format the string & fix behaviors on intel (#60) #77

gpu(darwin): format the string & fix behaviors on intel (#60)

gpu(darwin): format the string & fix behaviors on intel (#60) #77

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
deploy:
runs-on: ubuntu-latest
container:
# 1.20 是 Windows 7/8 Server 2008/2012 最后一个支持版本
image: goreleaser/goreleaser-cross:v1.20
steps:
- run: |
git config --global --add safe.directory /__w/agent/agent
- uses: actions/checkout@master
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version: "1.20.13"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger sync
if: ${{ env.SYNCED == 0 }}
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'nezhahq',
repo: 'agent',
workflow_id: 'sync-release.yml',
ref: 'main'
})