Skip to content

Commit

Permalink
chore: deploy css to serve as a package
Browse files Browse the repository at this point in the history
  • Loading branch information
herablog committed Jul 31, 2024
1 parent 2b56f44 commit fa43f0d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: deploying

on:
push:
tags:
- 'v*'

jobs:
deploying:
name: deploying
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Get version number from tag name
run: echo VERSION=${GITHUB_REF#refs/tags/v} >> $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 fa43f0d

Please sign in to comment.