Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Merge pull request #97 from nuest/master #44

Merge pull request #97 from nuest/master

Merge pull request #97 from nuest/master #44

Workflow file for this run

name: Deposit new posts on Zenodo
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
deposit:
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
python3-pip libcurl4-openssl-dev xfonts-base xfonts-75dpi xvfb qt5-default xkb-data x11-xkb-utils \
ruby-full build-essential zlib1g-dev
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6-1.focal_amd64.deb
pip3 install --user --upgrade pip
pip3 install --user requests
pip3 install --user coloredlogs
- name: Cache gems
uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Jekyll and gems
run:
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
sudo gem update --system|
sudo gem install sass-embedded
sudo gem install jekyll bundler
bundle config path vendor/bundle
bundle install
- name: Build page
run: bundle exec jekyll build
- name: Capture page as PDF
run: |
export DISPLAY=localhost:1.0
export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
xvfb-run make capture_pdf
pkill -f jekyll;
- name: Create archive of current repo
run: make capture_zip
- name: Deposit on Zenodo
env:
ZENODO_TOKEN: ${{ secrets.ZENODO_TOKEN }}
run: |
python3 zenodo_release.py;
Morty Proxy This is a proxified and sanitized view of the page, visit original site.