release.yaml 936 B

12345678910111213141516171819202122232425262728293031323334
  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. - name: Checkout code
  11. uses: actions/checkout@v3
  12. - name: Install Go
  13. uses: actions/setup-go@v4
  14. with:
  15. go-version: '1.22.x'
  16. - name: Install node
  17. uses: actions/setup-node@v3
  18. with:
  19. node-version: '20'
  20. cache: 'npm'
  21. cache-dependency-path: './web/package-lock.json'
  22. - name: Docker login
  23. uses: docker/login-action@v2
  24. with:
  25. username: ${{ github.repository_owner }}
  26. password: ${{ secrets.DOCKER_HUB_TOKEN }}
  27. - name: Install dependencies
  28. run: make build-deps-ubuntu
  29. - name: Build and publish
  30. run: make release
  31. env:
  32. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  33. - name: Print build results and checksums
  34. run: make cli-build-results