fork/gdu

git clone https://git.julia.blue/fork/gdu

dependabot[bot]chore(deps): bump actions/setup-go from 6 to 7 (#602)0e947bf

ignore
1.3 KiB46 linesraw
1name: Release
2on:
3  push:
4    tags:
5      - 'v*'
6
7jobs:
8  release:
9    runs-on: ubuntu-latest
10    steps:
11      - name: Install Go
12        uses: actions/setup-go@v7
13        with:
14          go-version: 1.26.x
15      - name: Checkout
16        uses: actions/checkout@v7
17      - name: Run tests
18        run: go test -v -covermode=count ./...
19      - name: Install tooling
20        run: go install github.com/mitchellh/gox@latest
21      - name: Import GPG key
22        run: |
23          echo "$GPG_PRIVATE_KEY" | gpg --batch --import
24          echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
25          echo "use-agent" >> ~/.gnupg/gpg.conf
26        env:
27          GPG_PRIVATE_KEY: ${{ secrets.PRIVATE_GPG_KEY }}
28      - name: Build
29        run: |
30          make clean
31          make tarball
32          make build-all
33          make man
34          make clean-uncompressed-dist
35          cd dist
36          sha256sum * > sha256sums.txt
37          gpg --yes --pinentry-mode loopback --passphrase "$GPG_PASSPHRASE" --sign --armor --detach-sign sha256sums.txt
38        env:
39          GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
40      - name: Release
41        uses: softprops/action-gh-release@v3
42        with:
43          draft: true
44          files: |
45            dist/*
46          generate_release_notes: true