...

Text file src/moul.io/http2curl/v2/.github/workflows/release.yml

Documentation: moul.io/http2curl/v2/.github/workflows

     1name: Release
     2on:
     3  push:
     4    branches:
     5      - master
     6
     7jobs:
     8  release:
     9    name: releaser
    10    runs-on: ubuntu-latest
    11    steps:
    12      -
    13        name: Checkout
    14        uses: actions/checkout@v3
    15      -
    16        name: Unshallow
    17        run: git fetch --prune --unshallow
    18      -
    19        name: Run Semantic Release
    20        id: semantic
    21        uses: docker://ghcr.io/codfish/semantic-release-action:v1
    22        env:
    23          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    24      -
    25        name: Set up Go
    26        if: steps.semantic.outputs.new-release-published == 'true'
    27        uses: actions/setup-go@v2
    28        with:
    29          go-version: 1.15.x
    30      -
    31        name: Register version on pkg.go.dev
    32        if: steps.semantic.outputs.new-release-published == 'true'
    33        run: |
    34          package=$(cat go.mod | grep ^module | awk '{print $2}')
    35          version=v${{ steps.semantic.outputs.release-version }}
    36          url=https://proxy.golang.org/${package}/@v/${version}.info
    37          set -x +e
    38          curl -i $url

View as plain text