Sets up a Gitea Actions workflow to automatically build and deploy the React portfolio website to the production server.
This includes:
- Using a containerized environment for consistent builds.
- Installing dependencies and building the project.
- Deploying the built files to the web server via SSH and rsync.
- Reloading the web server configuration to apply changes.
Also, this change updates the .gitignore file to exclude the 'dist' directory.
Modifies the deployment script to correctly reference the `dist` directory instead of the `build` directory.
This ensures that the correct files are deployed to the web server.
Sets up a CI/CD pipeline to automate the deployment of the portfolio website to a web server.
The pipeline includes steps for:
- Checking out the code
- Setting up Node.js
- Installing dependencies
- Building the application
- Deploying the built application to the web server via SSH.
This automated deployment ensures that the portfolio is always up-to-date with the latest changes.