Skip to content

Use g-image

Use g-image #26

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '12.x'
- name: Cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: master # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
token: ${{ secrets.GITHUB_TOKEN }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# BASE_BRANCH: dev
# BRANCH: master
# FOLDER: dist