summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/publish-github-action.yml
blob: ea4fa9ff8726fecd9914bd9f11fc31a5d7f4dc98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: publish-github-action

on:
  workflow_dispatch:
  push:
    tags:
      - "github-v*.*.*"
      - "!github-v1"

concurrency: ${{ github.workflow }}-${{ github.ref }}

permissions:
  contents: write
  workflows: write

jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - run: git fetch --force --tags

      - name: Publish
        run: |
          git config --global user.email "[email protected]"
          git config --global user.name "opencode"
          ./script/publish
        working-directory: ./sdks/github