Review and publish with GitHub Actions

The following steps introduce the GitHub actionarrow-up-right to your repository. This action both publishes the plugin, and prevents the Tessl workspace from having a duplicate when Tessl indexes popular skills on GitHub. See Tessl's GitHub actionarrow-up-right for the additional options and information.

  1. Create .github/workflows/publish-tile.yml in your root folder of your skill, placing the following content within it:

    name: Publish Tile
    
    permissions:
      id-token: write # Required for OIDC token
      contents: read # Required to checkout the repository
    
    on:
      push:
        branches:
          - main # Trigger on push / merge to main
    
    jobs:
      publish:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v6
          - uses: tesslio/publish@main
            with:
              token: ${{ secrets.TESSL_API_TOKEN }}
              # path: './path/to/tile' # Optional, defaults to current directory
              # review: 'true'          # Enable skill review quality gate (default: true)
              # review-threshold: '50'  # Minimum score 0-100 to pass (default: 50)

    Uncomment and adjust the review, review-threshold values if a quality gate is desired.

  2. Log into Tesslarrow-up-right on web UI, then navigate to https://tessl.io/account/api-keysarrow-up-right. Create a new API key. Copy the value as it will only be shown once.

  3. In GitHub, navigate to your repo Settings, select Secrets and variables , under actions, find New Repository Secret. Provide the name: TESSL_API_TOKEN and the Tessl API key you procured in the earlier step.

  4. Commit and push these changes into your Git repo.

Last updated