mirror of
https://git.sr.ht/~ashkeel/strimertul-website
synced 2024-11-21 21:22:21 +00:00
This commit is contained in:
parent
ed8f3eadf4
commit
bf4818959c
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/deploy.yaml
Normal file
34
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,34 @@
|
|||
name: Deploy to Artifacts
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: https://github.com/peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: "0.125.4"
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to MinIO
|
||||
uses: https://github.com/yakubique/minio-upload@v1.1.3
|
||||
with:
|
||||
endpoint: https://artifacts.fromouter.space
|
||||
access_key: ${{ secrets.MINIO_ACCESS }}
|
||||
secret_key: ${{ secrets.MINIO_SECRET }}
|
||||
bucket: strimertul-website
|
||||
source: ./public
|
||||
target: /
|
||||
recursive: true
|
Loading…
Reference in a new issue