Skip to content

Update vanilla components copy for Twitter -> X #1592

Update vanilla components copy for Twitter -> X

Update vanilla components copy for Twitter -> X #1592

Workflow file for this run

name: Deep Forest Sync
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
env:
PICKLES_BRANCH_NAME: master
PICKLES_FEATURES_FOLDER: packages
PICKLES_REPO_NAME: saasquatch__program-tools
PICKLES_BUCKET_NAME: deep-forest-pickles.ssqt.io
jobs:
deploy:
name: Deploy pickles JSONs to GCP Bucket
runs-on: ubuntu-latest
permissions:
contents: "read"
id-token: "write"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Node Setup 16.x
id: setup_node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install picklesdoc
id: picklesdoc
run: npm install -g picklesdoc@latest
- name: Generate pickles JSON
id: picklesdoc_generate
run: picklesdoc json "$PICKLES_FEATURES_FOLDER" "$PICKLES_REPO_NAME"__at__"$PICKLES_BRANCH_NAME".json
# We will only push the files to the bucket if this is a push event. This way
# pull requests can still run the parsing and generating steps as a kind of
# "unit test" to make sure the generation step will work correctly once the PR
# is merged.
- name: Authenticate with Google Cloud
if: ${{ github.event_name == 'push' }}
id: auth
uses: google-github-actions/auth@v0
with:
token_format: "access_token"
workload_identity_provider: "projects/167728399658/locations/global/workloadIdentityPools/github/providers/github"
service_account: "github-static-site-actions@static-site-proxy.iam.gserviceaccount.com"
- name: Setup GCP
if: ${{ github.event_name == 'push' }}
id: setup_gcp
uses: google-github-actions/setup-gcloud@v0
- name: Deploy to bucket
if: ${{ github.event_name == 'push' }}
id: gcp_rsync
run: gsutil cp "$PICKLES_REPO_NAME"__at__"$PICKLES_BRANCH_NAME".json gs://"$PICKLES_BUCKET_NAME"/