Skip to content

Ballerina Action

Actions
An action to run ballerina CLI commands
2201.11.0
Latest
Star (117)

Tags

 (1)

GitHub Action for the Ballerina CLI

The GitHub Action for the Ballerina CLI wraps the bal command inside an Action.

Usage

name: Ballerina example

on: [push]

jobs:
  build:
    
    runs-on: ubuntu-latest
    
    steps:
      - name: Checkout
        uses: actions/checkout@v1
    
      - name: Ballerina Build
        uses: ballerina-platform/ballerina-action@master
        with:
          args: 
            pack

      - name: Ballerina Push
        uses: ballerina-platform/ballerina-action@master
        with:
          args: 
            push 
        env: 
            BALLERINA_CENTRAL_ACCESS_TOKEN: ${{ secrets.BallerinaToken }}

Environment variables

  • BALLERINA_CENTRAL_ACCESS_TOKEN – Required only for the "push" action to represent the Ballerina Central access token. Preparing for Publishing will guide to create the token.
  • WORKING_DIR – Required only if we need to change the current working directory of the repository to another relative path.

Ballerina Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

An action to run ballerina CLI commands
2201.11.0
Latest

Tags

 (1)

Ballerina Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.