Skip to content

Commit

Permalink
Merge pull request #71 from celestiaorg/sysrex-patch-2
Browse files Browse the repository at this point in the history
Update pages.yml
  • Loading branch information
sysrex authored Jan 29, 2025
2 parents f07170c + c2e6d8c commit 01d2209
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1 @@
name: GitHub Pages

on:
push:
branches:
- main
pull_request:

workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '22'

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Create the .env file
run: |
touch .env
echo NEXT_PUBLIC_SITE_URL=${{ secrets.NEXT_PUBLIC_SITE_URL }} >> .env
echo NEXT_PUBLIC_RECAPTCHA_SITE_KEY=${{ secrets.NEXT_PUBLIC_RECAPTCHA_SITE_KEY }} >> .env

- run: npm install
- run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
cname: celestia.org
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 01d2209

Please sign in to comment.