From b08055602b7f4f7ee8a2fadcb0d66427c10e93a7 Mon Sep 17 00:00:00 2001 From: Ana Custura Date: Mon, 19 Jan 2026 10:36:55 +0000 Subject: [PATCH] Add workflow to build site --- .github/workflows/ci.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..370f35c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,26 @@ +name: ci +on: + push: + branches: + - kanglam-branding + pull_request: + branches: + - kanglam-branding +jobs: + build_and_publish: + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:runner-latest + steps: + - run: sudo apt update && sudo apt install -y tar + - uses: actions/checkout@v4 + - name: Build site + uses: actions/jekyll-build-pages@v1 + with: + destination: "./output" + - run: tar cvfz kanglam-ui.tar.gz ./output/* + + - run: | + curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X DELETE "https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest" + - run: | + curl -H "Authorization: token ${{ secrets.PACKAGE_TOKEN }}" -X PUT --upload-file dendrite-arm64.tar.gz https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest/kanglam-ui.tar.gz