package-builds-stable.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. name: Package builds (stable)
  2. on:
  3. workflow_dispatch:
  4. # release:
  5. # types: [published]
  6. permissions:
  7. contents: write
  8. actions: write
  9. jobs:
  10. package_builds:
  11. #runs-on: alrest-techarohq
  12. runs-on: ubuntu-24.04
  13. steps:
  14. - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  15. with:
  16. persist-credentials: false
  17. fetch-tags: true
  18. fetch-depth: 0
  19. - name: build essential
  20. run: |
  21. sudo apt-get update
  22. sudo apt-get install -y build-essential
  23. - uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
  24. with:
  25. node-version: "24.11.0"
  26. - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
  27. with:
  28. go-version: "1.25.4"
  29. - name: install node deps
  30. run: |
  31. npm ci
  32. - name: Build Packages
  33. run: |
  34. go tool yeet
  35. - name: Upload released artifacts
  36. env:
  37. GITHUB_TOKEN: ${{ github.TOKEN }}
  38. RELEASE_VERSION: ${{github.event.release.tag_name}}
  39. shell: bash
  40. run: |
  41. RELEASE="${RELEASE_VERSION}"
  42. cd var
  43. for file in *; do
  44. gh release upload $RELEASE $file
  45. done