This repository contains the React-based web application for managing custom short links with glnk.dev. The application is built and deployed to GitHub Pages using GitHub Actions.
- Custom short link management
- Redirection map generation
- Easy deployment to GitHub Pages
- Environment variable support
Before you begin, ensure you have the following installed:
npm install
- To run the application locally, you need to set up environment variables.
- Create a .env file in the root of the project and add the following:
REACT_APP_GLNK_USERNAME=<your-glnk-username>
PUBLIC_URL=/webapp
npm start
To create a production build of the application, run:
npm run build
The build artifacts will be stored in the build/
directory.
This repository is configured to use GitHub Actions to deploy the application to GitHub Pages. The workflow will automatically run when you push changes to the main branch.
The repository includes two workflow files:
action.yaml
: Defines a composite GitHub Action for building and deploying the web app.deploy.yaml
: Configures the workflow to trigger on pushes to the main branch or manually viaworkflow_dispatch
.