From 53707a11a98928dded44c74297d2dbdcef5baa1a Mon Sep 17 00:00:00 2001 From: irl Date: Sat, 21 Feb 2026 17:00:54 +0000 Subject: [PATCH] ci: build and publish --- .forgejo/workflows/publish.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .forgejo/workflows/publish.yaml diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..0e9d54c --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,26 @@ +--- +name: ci +on: + push: + branches: + - main + +jobs: + build_and_publish: + runs-on: docker + container: + image: ghcr.io/catthehacker/ubuntu:runner-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: npm install + - run: npm run build + - run: npm install -g bnycdn + - run: bnycdn key set default ${{ secrets.BUNNY_API }} + - run: bnycdn key set sr2docs ${{ secrets.BUNNY_FTP_PASSWORD }} --type=storages + - run: bnycdn cp -R -s sr2docs ./public /sr2docs/ + - run: bnycdn pz purge -t sr2docs