website/.gitea/workflows/build.yml
Frederik Ring 3997692e20
Some checks failed
Build / build (push) Failing after 37s
Deploy assets from CI
2023-09-02 21:05:19 +02:00

32 lines
826 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
- name: Install MinIO client
run: |
download=$(https://dl.min.io/client/mc/release/linux-$(uname -m | sed 's/x86_64/amd64/')/mc)
echo $download
curl -sSL $download -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