Skip to content

Commit

Permalink
chore: deploy css
Browse files Browse the repository at this point in the history
  • Loading branch information
herablog committed Jul 31, 2024
1 parent 2b56f44 commit 6e0f448
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 -h "Cache-Control:public, max-age=31536000, immutable" cp ameba-color-palette.css gs://${{ secrets.GCS_BUCKET }}/packages/@openameba/ameba-color-palette.css@${{ env.VERSION }}/ameba-color-palette.css
gsutil -h "Cache-Control:public, max-age=300" cp ameba-color-palette.css gs://${{ secrets.GCS_BUCKET }}/packages/@openameba/ameba-color-palette.css/ameba-color-palette.css

0 comments on commit 6e0f448

Please sign in to comment.