CI
This commit is contained in:
34
.gitea/workflows/deploy.yaml
Normal file
34
.gitea/workflows/deploy.yaml
Normal file
@@ -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"
|
||||
Reference in New Issue
Block a user