release.yml 796 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. name: release
  2. on:
  3. workflow_dispatch:
  4. push:
  5. tags:
  6. - "*"
  7. concurrency: ${{ github.workflow }}-${{ github.ref }}
  8. permissions:
  9. contents: write
  10. packages: write
  11. jobs:
  12. goreleaser:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - uses: actions/checkout@v3
  16. with:
  17. fetch-depth: 0
  18. - run: git fetch --force --tags
  19. - uses: actions/setup-go@v5
  20. with:
  21. go-version: ">=1.23.2"
  22. cache: true
  23. cache-dependency-path: go.sum
  24. - uses: oven-sh/setup-bun@v2
  25. with:
  26. bun-version: 1.2.16
  27. - run: |
  28. bun install
  29. ./script/publish.ts
  30. working-directory: ./packages/opencode
  31. env:
  32. GITHUB_TOKEN: ${{ secrets.SST_GITHUB_TOKEN }}
  33. AUR_KEY: ${{ secrets.AUR_KEY }}