release.yaml 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: release
  2. on:
  3. push:
  4. tags:
  5. - 'v[0-9]+.[0-9]+.[0-9]+'
  6. jobs:
  7. release:
  8. runs-on: ubuntu-latest
  9. steps:
  10. -
  11. name: Checkout code
  12. uses: actions/checkout@v3
  13. -
  14. name: Install Go
  15. uses: actions/setup-go@v4
  16. with:
  17. go-version: '1.19.x'
  18. -
  19. name: Install node
  20. uses: actions/setup-node@v3
  21. with:
  22. node-version: '18'
  23. cache: 'npm'
  24. cache-dependency-path: './web/package-lock.json'
  25. -
  26. name: Docker login
  27. uses: docker/login-action@v2
  28. with:
  29. username: ${{ github.repository_owner }}
  30. password: ${{ secrets.DOCKER_HUB_TOKEN }}
  31. -
  32. name: Install dependencies
  33. run: make build-deps-ubuntu
  34. -
  35. name: Build and publish
  36. run: make release
  37. env:
  38. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  39. -
  40. name: Print build results and checksums
  41. run: make cli-build-results