website/.gitea/workflows/build.yml
Frederik Ring 85ae14290a
All checks were successful
Build / build (push) Successful in 52s
Set SITEURL when building production site (#18)
Reviewed-on: #18
2024-01-16 20:57:11 +01:00

30 lines
804 B
YAML

name: Build
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Docker
run: curl -fsSL https://get.docker.com | sh
- name: Build
run: |
make build SITEURL=https://www.offen.software
- name: Install MinIO client
run: |
curl -sSL https://dl.min.io/client/mc/release/linux-$(uname -m | sed 's/x86_64/amd64/')/mc -o mc
chmod +x mc
mv mc /usr/local/bin/mc
command -v mc
- name: Configure MinIO client
run: |
mc alias set offen https://storage.offen.dev offen ${{ secrets.MINIO_SECRET_KEY }}
- name: Deploy
run: |
mc mirror --remove --overwrite ./output/ offen/software-website