Skip to content

Fix date for regex paper #64

Fix date for regex paper

Fix date for regex paper #64

Workflow file for this run

name: CI
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
with:
path: 'repo'
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build
run: (cd repo; hugo --gc --minify -b "https://cs.rit.edu/~dataunitylab/")
- name: Move deploy to top level
run: shopt -s dotglob; mv repo/public/* "$GITHUB_WORKSPACE"; rm -rf repo
- name: Fix index path
run: sed -i 's/\/index.json/\/~dataunitylab\/index.json/' en/js/wowchemy.min.*.js
- name: Set .htaccess permissions
run: chmod a+r .htaccess
- name: Deploy via rsync
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-avzr --delete --exclude ${{ secrets.INDEXNOW_KEY }}.txt"
SOURCE: .
REMOTE_HOST: glados.cs.rit.edu
REMOTE_USER: dataunitylab
TARGET: .
- name: indexnow-action
uses: bojieyang/indexnow-action@v2
with:
sitemap-location: 'https://cs.rit.edu/~dataunitylab/sitemap.xml'
key: ${{ secrets.INDEXNOW_KEY }}