From ac3f12a7c0f70511eafec13dce83946c111cbda2 Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Sun, 15 Mar 2026 19:00:16 +0300 Subject: feat: initial + ci --- .forgejo/workflows/build.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .forgejo/workflows/build.yml (limited to '.forgejo') diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml new file mode 100644 index 0000000..c49bd47 --- /dev/null +++ b/.forgejo/workflows/build.yml @@ -0,0 +1,47 @@ +name: Build Blog + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # evil hack to get makko + # mb write separate script for this? + - name: Setup Makko + run: | + curl -A "actions (compatible; Forgejo Actions; https://code.wejust.rest)" -o /usr/local/bin/makko https://our.starlightnet.work/transient/makko%20releases/makko%202.1.3-prerelease/makko-x86_64-linux + chmod +x /usr/local/bin/makko + + - name: Build blog + run: | + makko . + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: blog-site + path: web/ + retention-days: 30 + + # evil release block + - name: Create Release + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: blog-${{ github.sha }} + release_name: Blog Build ${{ github.sha }} + draft: false + prerelease: false + files: | + web/* -- cgit v1.3