Skip to content

Add fade-in animation for all popups #31

Add fade-in animation for all popups

Add fade-in animation for all popups #31

Workflow file for this run

# Workflow for deploying a static site to GitHub Pages
name: Deploy to GitHub Pages
on:
# Trigger deployment on pushes to the `main` branch
# Runs on pushes targeting the default branch
push:
branches: [ "main" ]
paths-ignore:
- '**.md'
pull_request_target:
branches: [ "main" ]
paths-ignore:
- '**.md'
# Allow manual runs from the GitHub Actions tab
workflow_dispatch:
permissions:
contents: read # Read access to the repository contents
pages: write # Write access to the GitHub Pages
id-token: write # Required for GitHub Pages deployment
# Allow only one concurrent deployment, skipping runs queued between the run in progress and latest queued.
concurrency:
group: "deploy"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout code
uses: actions/checkout@v4
# Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
# Cache node_modules to speed up future installs
- name: Cache node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
# Install dependencies
- name: Install dependencies
run: npm install
# Build the app with environment variables
- name: Build the app
env:
VITE_DEBUG_MODE: ${{ secrets.VITE_DEBUG_MODE || 'false' }}
VITE_VALIDATE_PROMOTION_CODE_API: ${{ secrets.VITE_VALIDATE_PROMOTION_CODE_API || 'https://chubgame.com/wp-json/chubgame/v1/validate' }}
VITE_SEND_DICE_DATA_API: ${{ secrets.VITE_SEND_DICE_DATA_API || 'https://chubgame.com/wp-json/chubgame/v1/send' }}
VITE_CHECK_BALANCE_API: ${{ secrets.VITE_CHECK_BALANCE_API || 'https://chubgame.com/wp-json/chubgame/v1/check-balance' }}
VITE_MAX_DICE_AMOUNT: ${{ secrets.VITE_MAX_DICE_AMOUNT || 10 }}
VITE_MIN_CHIPS_AMOUNT: ${{ secrets.VITE_MIN_CHIPS_AMOUNT || 10 }}
VITE_MAX_CHIPS_AMOUNT: ${{ secrets.VITE_MAX_CHIPS_AMOUNT || 100 }}
run: npm run build
# Upload build artifacts to GitHub Pages
- name: Upload build artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist' # Path to the build directory
# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
# Optionally, set a custom status message if deployment succeeds
- name: Set deployment status
run: echo "Deployment successful"