mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-09 18:43:14 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Release to Linux repository
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ^1.22
|
|
- name: Extract signing key
|
|
run: |-
|
|
mkdir -p $HOME/.gnupg
|
|
cat > $HOME/.gnupg/sagernet.key <<EOF
|
|
${{ secrets.GPG_KEY }}
|
|
echo "HOME=$HOME" >> "$GITHUB_ENV"
|
|
EOF
|
|
echo "HOME=$HOME" >> "$GITHUB_ENV"
|
|
- name: Publish release
|
|
uses: goreleaser/goreleaser-action@v6
|
|
with:
|
|
distribution: goreleaser-pro
|
|
version: latest
|
|
args: release -f .goreleaser.fury.yaml --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
|
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
|
|
NFPM_KEY_PATH: ${{ env.HOME }}/.gnupg/sagernet.key
|
|
NFPM_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
|