Merge pull request #1 from 0xnim/main #1
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
# Sample workflow for building and deploying an Astro site to GitHub Pages | |
# | |
# To get started with Astro see: https://docs.astro.build/en/getting-started/ | |
# | |
name: Test if it build on all platforms | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main"] | |
paths: | |
- "package.json" | |
- "package-lock.json" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
env: | |
BUILD_PATH: "." # default value when not using subfolders | |
# BUILD_PATH: subfolder | |
jobs: | |
build: | |
name: Build | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-14 | |
- os: ubuntu-latest | |
- os: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v5 | |
- name: Install dependencies | |
run: bun install | |
working-directory: ${{ env.BUILD_PATH }} | |
- name: Build with Astro | |
run: bun run astro build | |
working-directory: ${{ env.BUILD_PATH }} |