Skip to content

Hero Page setup

Hero Page setup #1

Workflow file for this run

name: "Deploy Static Files to GH-pages"
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checking Out"
uses: actions/[email protected]
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: |
echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: "Caching yarn"
uses: actions/[email protected]
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: "Caching build"
uses: actions/[email protected]
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Setting Up Node.js
uses: actions/[email protected]
with:
node-version: "21"
cache: "yarn"
- name: Installing dependencies
run: yarn install
- name: Generating Static Files
run: yarn build
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages

Check failure on line 66 in .github/workflows/ftpdeploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ftpdeploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 66
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected] # or specific "vX.X.X" version tag for this action