github.com/Mrs4s/go-cqhttp@v1.2.0/.github/workflows/release.yml (about)

     1  name: Release
     2  
     3  on:
     4    push:
     5      tags:
     6        - 'v*'
     7  
     8  jobs:
     9    goreleaser:
    10      runs-on: ubuntu-latest
    11      steps:
    12        - name: Checkout
    13          run: |
    14            git version
    15            git clone "${{ github.event.repository.html_url }}" /home/runner/work/go-cqhttp/go-cqhttp
    16            git checkout "${{ github.ref }}"
    17  
    18        - name: Set up Go
    19          uses: actions/setup-go@v3
    20          with:
    21            go-version: '1.20'
    22  
    23        - name: Run GoReleaser
    24          uses: goreleaser/goreleaser-action@v4
    25          with:
    26            version: latest
    27            args: release --clean
    28          env:
    29            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    30  
    31        #- name: Checkout Dist
    32        #  uses: actions/checkout@v2
    33        #  with:
    34        #    repository: 'gocq/dist'
    35        #    ref: master
    36        #    ssh-key: ${{ secrets.SSH_KEY }}
    37        #    path: upstream/dist
    38  
    39        #- name: Update Dist
    40        #  run: |
    41        #    chmod +x scripts/upload_dist.sh
    42        #    ./scripts/upload_dist.sh