publish-github-action.yml 599 B

123456789101112131415161718192021222324252627282930
  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. jobs:
  12. publish:
  13. runs-on: blacksmith-4vcpu-ubuntu-2404
  14. steps:
  15. - uses: actions/checkout@v3
  16. with:
  17. fetch-depth: 0
  18. - run: git fetch --force --tags
  19. - name: Publish
  20. run: |
  21. git config --global user.email "[email protected]"
  22. git config --global user.name "opencode"
  23. ./script/publish
  24. working-directory: ./github