static.yml: normalise unix line endings

file contains mixed line endings - change to unix to match existing workflow files.
no code changes.
This commit is contained in:
Spencer Oliver
2026-04-08 21:53:44 +01:00
parent d17969a50d
commit ad4cacd108

View File

@@ -1,67 +1,67 @@
# Simple workflow for deploying static content to GitHub Pages # Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages name: Deploy static content to Pages
on: on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
push: push:
branches: ["main"] branches: ["main"]
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions: permissions:
contents: read contents: read
pages: write pages: write
id-token: write id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency: concurrency:
group: "pages" group: "pages"
cancel-in-progress: false cancel-in-progress: false
# Configure these variables under your repo settings. # Configure these variables under your repo settings.
# You will likely need to set BASE_URL to be the name of your repo eg 'bentopdf' # You will likely need to set BASE_URL to be the name of your repo eg 'bentopdf'
env: env:
SIMPLE_MODE: ${{ vars.SIMPLE_MODE }} SIMPLE_MODE: ${{ vars.SIMPLE_MODE }}
BASE_URL: ${{ vars.BASE_URL }}/ BASE_URL: ${{ vars.BASE_URL }}/
HUSKY: 0 HUSKY: 0
jobs: jobs:
# Single deploy job since we're just deploying # Single deploy job since we're just deploying
deploy: deploy:
if: github.repository == 'alam00000/bentopdf' if: github.repository == 'alam00000/bentopdf'
environment: environment:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: "20" node-version: "20"
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Build distribution - name: Build distribution
run: | run: |
# export SIMPLE_MODE=${{ vars.SIMPLE_MODE }} # export SIMPLE_MODE=${{ vars.SIMPLE_MODE }}
# export BASE_URL=${{ vars.BASE_URL }}/ # export BASE_URL=${{ vars.BASE_URL }}/
npm run build npm run build
- name: Setup Pages - name: Setup Pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Upload artifact - name: Upload artifact
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with: with:
# Upload entire repository # Upload entire repository
path: dist path: dist
name: github-pages-deployment name: github-pages-deployment
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment id: deployment
uses: actions/deploy-pages@v4 uses: actions/deploy-pages@v4
with: with:
artifact_name: github-pages-deployment artifact_name: github-pages-deployment