From b4b6febc8db2ee734e3ecd3dc061a6321393876b Mon Sep 17 00:00:00 2001 From: Kazunari Hara Date: Mon, 29 Jul 2024 13:16:51 +0900 Subject: [PATCH] chore: deploy css --- .github/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..5d09d87 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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