2024-02-07 23:23:09 +01:00
|
|
|
# on:
|
|
|
|
# push:
|
|
|
|
# tags:
|
|
|
|
# - 'v*'
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build:
|
2024-02-07 23:36:17 +01:00
|
|
|
runs-on: docker
|
2024-02-07 23:31:15 +01:00
|
|
|
container:
|
2024-02-07 23:36:17 +01:00
|
|
|
image: node:16-bullseye" # Default for Forgejo
|
2024-02-07 23:23:09 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- shell: ash
|
|
|
|
run: |
|
2024-02-07 23:36:17 +01:00
|
|
|
ls ${{ github.workspace }
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm install
|
|
|
|
- name: Build
|
|
|
|
run: npx @11ty/eleventy
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist/
|
|
|
|
deploy:
|
|
|
|
needs: [build]
|
|
|
|
runs-on: docker # Defaults to Alpine in my runner
|
|
|
|
steps:
|
|
|
|
- uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
- name: List all files
|
|
|
|
shell: ash
|
|
|
|
run: |
|
|
|
|
ls -la dist
|