Files
Modernizr/.github/workflows/deploy.yml
Veeck 1d4c9cee1f Bump dependencies and actions (#2786)
* Update workflow actions

* Update dependencies

---------

Co-authored-by: veeck <gitkraken@veeck.de>
2025-11-23 17:13:55 +01:00

58 lines
1.4 KiB
YAML

name: Deploy to GitHub Pages
on:
push:
tags:
- 'v*' # Run only for tags that start with 'v' (e.g., v1.0, v2.1.3)
jobs:
# Build job
build:
# Specify runner + build & upload the static files as an artifact
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Installing Node
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Installing dependencies
run: npm ci
- name: Installing gulp command line interface
run: npm install gulp-cli
- name: Build static files
id: build
run: |
gulp gh-pages
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: gh-pages/
# Deployment job
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4