Execute conv.py without poerty #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "main" ] | |
# pull_request: | |
# branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: install stuff | |
run: | | |
sudo apt-get install -y hugo ruby python3 python3-pip ruby-asciidoctor-pdf ruby-toml-rb | |
pip3 install rispy | |
# gem install asciidoctor-pdf python3-poetry | |
# rm poetry.lock | |
# poetry lock && poetry install --no-root | |
# sudo gem install ref_parsers | |
# - name: convert RIS to YAML (ruby) | |
# run: ruby conv.rb | |
- name: convert RIS to YAML (python) | |
run: python3 conv.py | |
# run: poetry run python conv.py | |
- name: build site | |
run: hugo | |
- name: generate CV | |
run: ruby generate_cv.rb | |
- name: build site again to include CV | |
run: hugo | |
- name: deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
personal_token: ${{ secrets.PERSONAL_TOKEN }} | |
publish_dir: ./public |