publish-github-action.yml 608 B

12345678910111213141516171819202122232425262728293031
  1. name: publish-github-action
  2. on:
  3. workflow_dispatch:
  4. push:
  5. tags:
  6. - "github-v*.*.*"
  7. - "!github-v1"
  8. concurrency: ${{ github.workflow }}-${{ github.ref }}
  9. permissions:
  10. contents: write
  11. workflows: write
  12. jobs:
  13. publish:
  14. runs-on: ubuntu-latest
  15. steps:
  16. - uses: actions/checkout@v3
  17. with:
  18. fetch-depth: 0
  19. - run: git fetch --force --tags
  20. - name: Publish
  21. run: |
  22. git config --global user.email "[email protected]"
  23. git config --global user.name "opencode"
  24. ./script/publish
  25. working-directory: ./sdks/github