Deploy to CSS CDN #126
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: Deploy to CSS CDN | |
on: | |
workflow_run: | |
workflows: ["Publish to NPM"] | |
types: | |
- completed | |
workflow_dispatch: | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- name: Auth GCloud | |
uses: "google-github-actions/auth@v0" | |
with: | |
credentials_json: "${{ secrets.GCE_AUTH_JSON }}" | |
- name: Install dependencies and build 🔧 | |
run: npm install && npm run build:prod | |
- name: Upload CSS | |
uses: "google-github-actions/upload-cloud-storage@v0" | |
with: | |
path: "dist/@squidit/ngx-css" | |
destination: "squid-css" |