Skip to content

Test Deployment

Test Deployment #106

Workflow file for this run

name: Test Deployment
on:
push:
branches: ["test"]
workflow_dispatch:
inputs:
webhookUrl:
description: 'Webhook URL for notifications'
required: false
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- run: npm ci
- name: Build
run: npm run build
env:
NEEDLE_CLOUD_TOKEN: ${{ secrets.NEEDLE_CLOUD_TOKEN }}
- name: Deploy to Needle Cloud
uses: needle-tools/deploy-to-needle-cloud-action@v1
id: deploy
with:
token: ${{ secrets.NEEDLE_CLOUD_TOKEN }}
dir: ./build
name: sveltekit-template-test
webhookUrl: ${{ inputs.webhookUrl || secrets.DISCORD_WEBHOOK }}
overrideVersion: "rc"
- name: Display deployment URL
run: |
echo "::notice title=Deployment URL::Deployed to ${{ steps.deploy.outputs.url }}"