54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: Build Astro
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
env:
|
|
ASTRO_TELEMETRY_DISABLED: true
|
|
|
|
jobs:
|
|
check:
|
|
name: 🧪 Astro check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: |
|
|
ls ${{ github.workspace }}
|
|
#- uses: denoland/setup-deno@v2
|
|
# with:
|
|
# deno-version: v2.x
|
|
#- run: deno task install
|
|
#- run: deno task check
|
|
|
|
#deploy:
|
|
# name: 🚢 Deploy
|
|
# if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
|
|
# runs-on: ubuntu-latest
|
|
# needs: [check]
|
|
# steps:
|
|
# - uses: actions/checkout@v4
|
|
#
|
|
# - uses: denoland/setup-deno@v2
|
|
# with:
|
|
# deno-version: v2.x
|
|
# - run: deno task install
|
|
# - run: deno task build
|
|
#
|
|
# - name: build containerfile
|
|
# id: build-image
|
|
# uses: redhat-actions/buildah-build@v2
|
|
# with:
|
|
# image: website
|
|
# tags: latest
|
|
# containerfiles: |
|
|
# ./Containerfile
|
|
#
|
|
# - name: Push to registry
|
|
# uses: redhat-actions/push-to-registry@v2
|
|
# with:
|
|
# image: ${{ steps.build-image.outputs.image }}
|
|
# tags: ${{ steps.build-image.outputs.tags }}
|
|
# username: ${{ secrets.REGISTRY_USER }}
|
|
# password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
# registry: ${{ secrets.REGISTRY }}
|
|
#
|
|
# - name: Trigger deployment
|
|
# run: curl -X POST ${{ secrets.DEPLOY_WEBHOOK }}
|