Skip to content

Match workflow to new url #5

Match workflow to new url

Match workflow to new url #5

Workflow file for this run

name: Deploy Jekyll site to GitHub Pages

Check failure on line 1 in .github/workflows/pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pages.yml

Invalid workflow file

(Line: 53, Col: 9): 'env' is already defined
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
bundler-cache: true
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install Node dependencies
run: npm ci
- name: Configure GitHub Pages
id: pages
uses: actions/configure-pages@v5
- name: Build site
run: |
npm run css:build
bundle exec jekyll build \
--baseurl "" \
--url "https://uniqueshipdata.org"
env:
JEKYLL_ENV: production
env:
JEKYLL_ENV: production
- name: Upload site
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4