chore: remove upstream workflows for fork push

This commit is contained in:
kxkm
2026-03-21 21:46:23 +01:00
parent 049547c822
commit 054276929d
3 changed files with 0 additions and 178 deletions
-45
View File
@@ -1,45 +0,0 @@
# .github/workflows/deploy.yml
name: Deploy openDAW studio
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: ⬇️ Checkout main repo
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: 🦄 Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm
- name: 📦 Install dependencies
run: npm ci
- name: 🏗️ Build project
shell: bash
env:
CI: true
BRANCH_NAME: ${{ github.ref_name }}
run: |
npm run build
- name: 🚚 Run deploy script
env:
TERM: xterm-256color
SFTP_HOST: ${{ secrets.SFTP_HOST }}
SFTP_PORT: ${{ secrets.SFTP_PORT }}
SFTP_USERNAME: ${{ secrets.SFTP_USERNAME }}
SFTP_PASSWORD: ${{ secrets.SFTP_PASSWORD }}
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
BRANCH_NAME: ${{ github.ref_name }}
run: |
npx ts-node --transpile-only deploy/run.ts
-17
View File
@@ -1,17 +0,0 @@
name: Notify Discord
on:
workflow_dispatch:
jobs:
notify:
runs-on: ubuntu-latest
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 22
- run: npm ci
- run: npx ts-node --transpile-only deploy/discord.ts
-116
View File
@@ -1,116 +0,0 @@
# .github/workflows/test-sftp.yml
name: Test SFTP Connection
on:
workflow_dispatch:
inputs:
test_upload:
description: "Test file upload (creates/deletes test file)"
required: false
default: false
type: boolean
jobs:
test-connection:
runs-on: ubuntu-latest
environment: production
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v5
- name: 🦄 Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 22
- name: 📦 Install SFTP client
run: npm install ssh2-sftp-client
- name: 🔌 Test SFTP Connection
env:
SFTP_HOST: ${{ secrets.SFTP_HOST }}
SFTP_PORT: ${{ secrets.SFTP_PORT }}
SFTP_USERNAME: ${{ secrets.SFTP_USERNAME }}
SFTP_PASSWORD: ${{ secrets.SFTP_PASSWORD }}
run: |
node -e "
const Client = require('ssh2-sftp-client');
async function testConnection() {
const sftp = new Client();
try {
console.log('🔌 Attempting to connect...');
console.log('Host:', process.env.SFTP_HOST);
console.log('Port:', process.env.SFTP_PORT);
console.log('Username:', process.env.SFTP_USERNAME);
await sftp.connect({
host: process.env.SFTP_HOST,
port: parseInt(process.env.SFTP_PORT) || 22,
username: process.env.SFTP_USERNAME,
password: process.env.SFTP_PASSWORD,
readyTimeout: 20000,
retries: 1
});
console.log('✅ Connection successful!');
// Test directory listing
console.log('📁 Testing directory listing...');
const list = await sftp.list('./');
console.log('Directory contents:');
list.slice(0, 10).forEach(item => {
console.log(\` \${item.type === 'd' ? '📁' : '📄'} \${item.name} (\${item.size} bytes)\`);
});
// Test file upload if requested
if ('${{ inputs.test_upload }}' === 'true') {
console.log('📤 Testing file upload...');
// Create a test file
const testContent = 'GitHub Action SFTP Test - ' + new Date().toISOString();
const testFileName = 'github-action-test.txt';
await sftp.put(Buffer.from(testContent), './' + testFileName);
console.log('✅ Test file uploaded successfully');
// Verify it exists
const exists = await sftp.exists('./' + testFileName);
console.log('✅ Test file exists:', exists);
// Clean up - delete the test file
await sftp.delete('./' + testFileName);
console.log('🗑️ Test file deleted');
}
await sftp.end();
console.log('✅ All tests passed!');
} catch (error) {
console.error('❌ Connection failed:');
console.error('Error code:', error.code);
console.error('Error message:', error.message);
if (error.code === 'ENOTFOUND') {
console.error('💡 This usually means the hostname is incorrect');
console.error('💡 Common Strato hostnames: sftp.strato.de, ssh.strato.de');
} else if (error.code === 'ECONNREFUSED') {
console.error('💡 This usually means the port is incorrect or service is down');
console.error('💡 Standard SFTP port is 22');
} else if (error.message.includes('Authentication failed')) {
console.error('💡 Username or password is incorrect');
}
process.exit(1);
}
}
testConnection();
"
- name: 🎉 Success Summary
run: |
echo "🎉 SFTP connection test completed successfully!"
echo "Your credentials are working and you can proceed with deployment."