Skip to content

Bump the npm_and_yarn group across 1 directory with 4 updates (#35) #138

Bump the npm_and_yarn group across 1 directory with 4 updates (#35)

Bump the npm_and_yarn group across 1 directory with 4 updates (#35) #138

Workflow file for this run

# @license AGPL-3.0-or-later
#
# Copyright 2025 Hong Xu <[email protected]>
#
# This file is part of Delpa's website.
#
# Delpa's website is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
name: Build and Deploy Pages
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "0 1 * * *"
jobs:
build:
name: Build Website
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
with:
submodules: true
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: 22
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Generate snapshot list
run: |
gh repo list delpa-org --json name --jq '[.[] | select(.name | startswith("melpa-snapshot-")) | .name.[15:]]' > static/melpa_snapshot_versions.json
cd static && sha256sum melpa_snapshot_versions.json > melpa_snapshot_versions.json.sha256
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build the website
run: npm run build
- name: Upload GitHub Pages Artifact
uses: actions/[email protected]
with:
path: build
deploy:
name: Deploy Pages
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-24.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: [build]
steps:
- name: Deploy to GitHub Pages
id: deployment
# Don't use an exact version here because pull requests don't test this
# line
uses: actions/deploy-pages@v4