github.com/sagernet/sing-box@v1.9.0-rc.20/.github/workflows/linux.yml (about)

     1  name: Release to Linux repository
     2  
     3  on:
     4    release:
     5      types:
     6        - published
     7  
     8  jobs:
     9    build:
    10      runs-on: ubuntu-latest
    11      steps:
    12        - name: Checkout
    13          uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
    14          with:
    15            fetch-depth: 0
    16        - name: Setup Go
    17          uses: actions/setup-go@v5
    18          with:
    19            go-version: ^1.22
    20        - name: Extract signing key
    21          run: |-
    22            mkdir -p $HOME/.gnupg
    23            cat > $HOME/.gnupg/sagernet.key <<EOF
    24            ${{ secrets.GPG_KEY }}
    25            echo "HOME=$HOME" >> "$GITHUB_ENV"
    26            EOF
    27            echo "HOME=$HOME" >> "$GITHUB_ENV"
    28        - name: Publish release
    29          uses: goreleaser/goreleaser-action@v5
    30          with:
    31            distribution: goreleaser-pro
    32            version: latest
    33            args: release -f .goreleaser.fury.yaml --clean
    34          env:
    35            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    36            GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
    37            FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
    38            NFPM_KEY_PATH: ${{ env.HOME }}/.gnupg/sagernet.key
    39            NFPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}