chore(deps): bump actions/cache from 3.2.6 to 3.3.1 #51
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: Continuous Deployment | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy-deno: | |
name: Deploy to deno | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Needed for auth with Deno Deploy | |
contents: read # Needed to clone the repository | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Restore Node.js modules | |
id: cache-node-modules | |
uses: actions/cache@v3.3.1 | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }} | |
- name: Install | |
if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} | |
run: yarn install | |
- name: Build website | |
run: yarn storybook:build | |
- name: Copy deno.ts | |
run: cp deno.ts storybook-static | |
- name: Upload website to Deno Deploy | |
uses: denoland/deployctl@v1 | |
with: | |
project: "gio-design" | |
entrypoint: "./deno.ts" | |
root: storybook-static |