Skip to content

static/refs/remotes/main~tuanngocptn #39

static/refs/remotes/main~tuanngocptn

static/refs/remotes/main~tuanngocptn #39

Workflow file for this run

name: Vtd static
on:
repository_dispatch:
types:
- static/**
env:
TRIGGERING_ACTOR: ${{ github.event.client_payload.triggering_actor}}
TRIGGERING_REF: ${{ github.event.client_payload.triggering_ref}}
jobs:
setup-build-publish-deploy:
environment: ${{ github.event.client_payload.triggering_env }}
name: Setup build publish deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source
uses: actions/checkout@v4
with:
repository: ${{ secrets.STATIC_WEB_REPOSITORY }}
token: ${{ secrets.GH_PAT }}
ref: ${{ env.TRIGGERING_REF }}
- name: Authen GCP
uses: "google-github-actions/auth@v2"
with:
credentials_json: "${{ secrets.GCP_SERVICE_ACCOUNT_KEY }}"
- name: Setup GCP
uses: google-github-actions/setup-gcloud@v2
- name: Upload to GCP Storage
uses: google-github-actions/upload-cloud-storage@v2
with:
path: ./
destination: ${{ secrets.BUCKET_NAME }}
parent: false