Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Update publications.md #45

Update publications.md

Update publications.md #45

Workflow file for this run

name: Build and deploy
on: push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Node.js
uses: actions/setup-node@v2
with:
cache: yarn
- name: Install Yarn packages
run: yarn install --frozen-lockfile
- name: Build site with Jekyll
run: bundle exec jekyll build
- name: Build the production image
run: docker build -t app .
- name: Test nginx config
run: docker run --rm app nginx -t
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push the production image to the container registry
if: github.ref == 'refs/heads/master'
run: |
docker tag app ghcr.io/${{ github.repository }}:latest
docker push ghcr.io/${{ github.repository }}:latest