chore: deploy css #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |