Skip to content

Adjust share buttons sticky position: reduce top offset from 80px to … #194

Adjust share buttons sticky position: reduce top offset from 80px to …

Adjust share buttons sticky position: reduce top offset from 80px to … #194

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
actions: read
jobs:
build:
name: Build Site
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run build
- name: Add deployment timestamp
run: |
TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
echo "<!-- Deployed: $TIMESTAMP -->" >> public_html/index.html
sed -i "s/DEPLOYMENT_TIMESTAMP_PLACEHOLDER/$TIMESTAMP/g" public_html/index.html
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: ./public_html
deploy:
if: github.ref == 'refs/heads/main'
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4