Skip to content

fix: navbar css

fix: navbar css #94

Workflow file for this run

# Workflow for building and deploying an Eleventy site to a local site branch (for further workflow automation)
name: Deploy Site
on:
# Runs on pushes targeting the default branch
push:
branches: master
paths:
- '**'
- '!.gitignore'
- '!*.md'
- '!LICENSE'
- '!.eslintignore'
- '!.eslintrc.yml'
- '!.github/**'
- '!.lycheeignore'
- '!.vscode/**'
- '!archive/**'
- '!scripts/**'
- '!ust/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Environment variables
env:
deploy-to-ghpages: false # Set `true` to deploy to GitHub Pages.
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all commit history.
- name: Detect Package Manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine packager manager"
exit 1
fi
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.cache
.eleventy/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-eleventy-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-eleventy-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Install Dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build
run: ${{ steps.detect-package-manager.outputs.manager }} run prod
- name: Commit & Push Site Build
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Build site from GitHub Actions
branch: site
create_branch: true
file_pattern: '_site/** .lycheeignore'
commit_options: '--no-verify --signoff'
add_options: '-f'
push_options: '--force'
skip_checkout: true
skip_dirty_check: true
skip_fetch: true
- name: Upload Artifact
if: ${{ env.deploy-to-ghpages }}
uses: actions/upload-pages-artifact@v2
with:
path: ./_site
# Deployment job
deploy:
if: ${{ env.deploy-to-ghpages }}

Check failure on line 117 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy Site

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 117, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.deploy-to-ghpages
environment:
name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# url: trebledj.github.io
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2