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 29, 2024
1 parent 2b56f44 commit b4b6feb
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 cp ameba-color-palette.css gs://${{ secrets.GCS_BUCKET }}/packages/@openameba/ameba-color-palette.css@${{ env.VERSION }}/ameba-color-palette.css
gsutil cp ameba-color-palette.css gs://${{ secrets.GCS_BUCKET }}/packages/@openameba/ameba-color-palette.css/ameba-color-palette.css

0 comments on commit b4b6feb

Please sign in to comment.