From 7996d64ae474e53b542fa2371575eb5a0b652736 Mon Sep 17 00:00:00 2001 From: eliselavy <35602279+eliselavy@users.noreply.github.com> Date: Thu, 27 Apr 2023 16:12:04 +0200 Subject: [PATCH] Create github-actions-publishing.yml --- .../workflows/github-actions-publishing.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/github-actions-publishing.yml diff --git a/.github/workflows/github-actions-publishing.yml b/.github/workflows/github-actions-publishing.yml new file mode 100644 index 0000000..012b0fd --- /dev/null +++ b/.github/workflows/github-actions-publishing.yml @@ -0,0 +1,25 @@ +on: [workflow_dispatch] + +name: GitHub Actions Ipynb for publishing +jobs: + ipynb_for_publishing: + runs-on: ubuntu-latest + name: Ipynb for publishing + steps: + - name: checkout repo + uses: actions/checkout@v3 + - name: Skim example file + id: skim + uses: c2dh/journal-of-digital-history-ipynb-skim-action@v1.0.0 + with: + notebook: 'article.ipynb' + output_notebook: 'skim-article.ipynb' + # Use the output from the `hello` step + - name: Use the output + run: echo "number of cells ${{ steps.skim.outputs.size }} - output ${{ steps.skim.outputs.outputNotebook }}" + - name: commit changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + file_pattern: '*.ipynb' + + -- GitLab