Skip to content

chore: deploy css

chore: deploy css #5

Workflow file for this run

name: deploying
on:
push:
jobs:
deploying:
name: deploying
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Get verision from package.json
run: echo VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SA_KEY }}
- uses: google-github-actions/setup-gcloud@v2
- name: Deploy to Cloud Storage
run: |
gsutil cp ameba-color-palette.css gs://${{ secrets.GCS_BUCKET }}/package/@openameba/ameba-color-palette.css@${{ env.VERSION }}/ameba-color-palette.css
gsutil cp ameba-color-palette.css gs://${{ secrets.GCS_BUCKET }}/package/@openameba/ameba-color-palette.css/ameba-color-palette.css