GitHub Action:Buf generate
Uses Buf to generate compiled protos
- uses : Unsupervisedcom/action-buf-generate@undefined
with :
# Working directory
# Default: ${{ github.workspace }}
working-directory : " "
# Python version to compile python protos against
# Default: 3.10.x
python-version : " "
Input
Description
Default
Required
working-directory
Working directory
${{ github.workspace }}
false
python-version
Python version to compile python protos against
3.10.x
false
Output
Description
Default
Required
random-number
Random number
Example usage with npm upload protos action, will result in an uploaded package called @unsupervised/my-app
name : Build and upload npm protos to gar
on :
release :
types : [created]
jobs :
build-upload-protos-npm :
runs-on : ubuntu-latest
steps :
- uses : Unsupervisedcom/action-buf-generate@v1
- uses : Unsupervisedcom/action-upload-protos-npm-gar@v1
with :
project-id : ${{ secrets.GOOGLE_ARTIFACT_PROJECT_ID }}
credentials-json : ${{ secrets.GOOGLE_ARTIFACT_READ_WRITE }}
package-name : " my-app"