feat: add claude #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Landing Page | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
cache-dependency-path: './landing-page/package-lock.json' | |
- name: Install Dependencies | |
run: npm ci | |
working-directory: ./landing-page | |
- name: Lint | |
run: npm run lint | |
working-directory: ./landing-page | |
- name: Build | |
run: npm run build | |
working-directory: ./landing-page | |
env: | |
CI: true | |
NODE_ENV: production | |
- name: Install Railway CLI | |
run: | | |
curl -fsSL https://railway.app/install.sh | sh | |
- name: Deploy to Railway | |
run: | | |
railway up \ | |
--service b54b1497-e63d-4612-94d9-f2e1c781755e \ | |
--detach | |
env: | |
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} | |
- name: Deploy to GitHub Pages (Backup) | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: landing-page/build | |
clean: true | |
single-commit: true | |
permissions: | |
contents: write |