build-artifacts.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: Build artifacts
  2. on:
  3. push:
  4. tags:
  5. - "*"
  6. permissions:
  7. contents: write
  8. jobs:
  9. goreleaser:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v4
  14. with:
  15. fetch-depth: 0
  16. - uses: actions/setup-go@v5
  17. with:
  18. go-version: 1.22
  19. check-latest: true
  20. cache: true
  21. - uses: pnpm/action-setup@v4.0.0
  22. with:
  23. version: 9
  24. - uses: actions/setup-node@v4
  25. with:
  26. node-version: "20"
  27. cache: pnpm
  28. cache-dependency-path: "web/pnpm-lock.yaml"
  29. - run: pnpm install
  30. working-directory: web
  31. - run: pnpm release
  32. working-directory: web
  33. - name: Run GoReleaser
  34. uses: goreleaser/goreleaser-action@v6
  35. with:
  36. # either 'goreleaser' (default) or 'goreleaser-pro'
  37. distribution: goreleaser
  38. # 'latest', 'nightly', or a semver
  39. version: latest
  40. args: release --clean --skip-validate
  41. env:
  42. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}