From 9acda1b9830a12c86f3d6b894a05155192c688a1 Mon Sep 17 00:00:00 2001 From: Dark Steveneq Date: Mon, 8 Dec 2025 22:02:15 +0100 Subject: [PATCH] CI --- .gitea/workflows/deploy.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..4daf289 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,34 @@ +name: Upload to PageUp (NoName Pages) + +on: workflow_dispatch + +# This is an edid of what tags wrote for wcv3 with parts of nonamesoftlander by me + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + name: Checkout code + + - name: Setup Node.JS + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Install Dependencies + run: npm ci + + - name: Build site + run: npm run build + + # Now the fun part.. uploading it to pageup + - run: cd dist && tar -czf archive.tar.gz -C . . || true + - name: Upload to PageUp + run: | + echo "Uploading..." + curl -v -F "file=@dist/archive.tar.gz" -F "name=folporio" https://pages.nnsoft.xyz/upload | tee response.html + echo "" + echo "Server responded with:" + cat response.html + - run: echo "I am done with this" \ No newline at end of file