Skip to content

Print git diff to GHA summary #77

Print git diff to GHA summary

Print git diff to GHA summary #77

Workflow file for this run

name: Auto deploy
on:
push:
branches: [master, data]
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: master
fetch-depth: 2
- name: Checkout data
uses: actions/checkout@v6
with:
ref: data
path: data
fetch-depth: 1
- name: Get current time
uses: gerred/actions/current-time@master
id: now
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: |
echo "{\"updated_at\":\"${{ steps.now.outputs.time }}\",\"workflow_run\":\"${{ github.run_id }}\"}" > ./data/stats.json
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: dist
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5