Skip to content

Commit

Permalink
updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bendominguez0111 committed Jul 29, 2023
1 parent cb41610 commit a5f3179
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/build_pages.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/build_posts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build Posts

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nbconvert
- name: Run script
run: python build_posts.py

- name: Commit and push changes
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add posts/*
git commit -m 'Update posts' || exit 0
git push origin master

0 comments on commit a5f3179

Please sign in to comment.