Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't store server name in secrets #491

Open
OmarioHassan opened this issue Jan 4, 2025 · 0 comments
Open

Can't store server name in secrets #491

OmarioHassan opened this issue Jan 4, 2025 · 0 comments

Comments

@OmarioHassan
Copy link

OmarioHassan commented Jan 4, 2025

Bug Description
Storing user name and password in secrets very well but not for server name.

My Action Config

name: 🚀 Deploy website on push

on:
  push:
    branches:
      - main # Replace with your deployment branch if different

jobs:
  build_and_deploy:
    name: 🎉 Deploy
    runs-on: ubuntu-latest

    steps:
      # Checkout the repository
      - name: 🚚 Get latest code
        uses: actions/checkout@v4

      # Set up Node.js environment
      - name: Setup Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 18 # Use the Node.js version compatible with your project

      # Install dependencies and build the React app
      - name: 🔨 Build Project
        run: |
          npm install
          npm run build

      # Deploy built files to SmarterASP.NET using FTP
      - name: 📂 Sync files
        uses: SamKirkland/FTP-Deploy-Action@v4.3.5
        with:
          server: something.site4now.net # Replace with your FTP server
          username: "${{ secrets.FTP_USERNAME }}" # Replace with your FTP username
          password: "${{ secrets.FTP_PASSWORD }}" # Replace with your FTP password
          local-dir: dist/ # React production build folder
          server-dir: / # Target directory on the server (adjust as needed)

My Action Log


image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant