From 18c0460c4589cc82ea22ccf4c5bb2c63992b0b5f Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:39:22 +0000 Subject: [PATCH] feat/fix: Update GitHub Actions workflow file --- .github/workflows/main.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/main.yml 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