diff --git a/.github/workflows/fig.yml b/.github/workflows/fig.yml new file mode 100644 index 00000000..86621f62 --- /dev/null +++ b/.github/workflows/fig.yml @@ -0,0 +1,28 @@ +name: fig + +on: + workflow_dispatch: + push: + tags: + - 'v*' + +permissions: + contents: read + +jobs: + fig: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable + cache: true + - run: go mod tidy && go run . generate-fig-spec >cxcli.ts + - uses: withfig/push-to-fig-autocomplete-action@v2 + with: + token: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }} + autocomplete-spec-name: cxcli + spec-path: cxcli.ts + integration: commander \ No newline at end of file