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