From bf4818959c0df7435e68fd0ff6ac7b4387a59da3 Mon Sep 17 00:00:00 2001 From: Ash Keel Date: Sat, 27 Apr 2024 19:26:25 +0200 Subject: [PATCH] add deploy action --- .forgejo/workflows/deploy.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..8040d37 --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -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