diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000000..5997105311d0f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +env: + WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }} + CREDENTIALS_JSON: ${{ secrets.CREDENTIALS_JSON }} + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.x + + - name: Authenticate with Google Cloud + uses: google-github-actions/auth@v1 + with: + workload_identity_provider: ${{ env.WORKLOAD_IDENTITY_PROVIDER }} + credentials_json: ${{ env.CREDENTIALS_JSON }} + + # Add more steps for your build process