From 90c35f1b847ad73d342edf42434a0522742d2402 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 | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..f8572c7 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,24 @@ +name: ci +on: + push: + branches: + - kanglam-branding + pull_request: + branches: + - kanglam-branding +jobs: + build_and_publish: + runs-on: docker + container: + image: docker.io/debian:trixie + steps: + - run: apt update && apt install -y tar jekyll nodejs npm ruby-dev curl + - uses: actions/checkout@v4 + - run: bundle install + - run: bundle exec jekyll build -d ../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 kanglam-ui.tar.gz https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest/kanglam-ui.tar.gz