kios-webapp/.github/workflows/astro.yml

29 lines
574 B
YAML
Raw Normal View History

name: Deploy Astro site
2023-05-13 14:55:41 +00:00
on:
push:
branches: ["main"]
workflow_dispatch:
env:
BUILD_PATH: "./astro"
2023-05-13 14:55:41 +00:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
- name: Install dependencies
run: yarn install
2023-05-13 14:55:41 +00:00
working-directory: ${{ env.BUILD_PATH }}
- name: Build with Astro
run: |
yarn astro build
2023-05-13 14:55:41 +00:00
working-directory: ${{ env.BUILD_PATH }}