Skip to content

New package: MoireSuperlattices v0.1.0 (#120892) #4

New package: MoireSuperlattices v0.1.0 (#120892)

New package: MoireSuperlattices v0.1.0 (#120892) #4

name: Generate and Deploy Redirects
on:
workflow_dispatch:
push:
branches:
- master
paths:
- '**/Package.toml' # avoids redeploys on version or compat changes
jobs:
build-and-deploy:
# 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
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Install Julia
uses: julia-actions/setup-julia@5c9647d97b78a5debe5164e9eec09d653d29bd71 # v2.6.1
with:
version: '1'
- name: Run the "generate_redirects.jl" Julia script
run: julia .ci/generate_redirects.jl
- name: Upload static files as artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: webroot/
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5