Skip to content

Fix to include recent publications #26

Fix to include recent publications

Fix to include recent publications #26

Workflow file for this run

name: Jekyll site CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- shell: bash
name: Create site tarball
run: |
tar -czvf /tmp/build.tar.gz -C ${{github.workspace}} _site
- name: Create site as artifact
uses: actions/upload-artifact@v3
with:
name: site-archive
path: /tmp/build.tar.gz
- name: Get short commit string
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Create release
uses: softprops/action-gh-release@v1
with:
token: "${{ secrets.API_TOKEN }}"
draft: false
prerelease: false
tag_name: "auto-${{ steps.vars.outputs.sha_short }}"
files: /tmp/build.tar.gz
- name: Update status
if: always()
uses: ouzi-dev/commit-status-updater@v2
with:
status: "${{ job.status }}"