mirror of
https://github.com/NotXia/unibo-ai-notes.git
synced 2025-12-15 19:12:22 +01:00
Fix workflow
This commit is contained in:
25
.github/workflows/compile.yml
vendored
25
.github/workflows/compile.yml
vendored
@ -19,12 +19,12 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Checkout current pdfs branch
|
- name: Checkout current pdfs branch
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: pdfs
|
ref: pdfs
|
||||||
path: .currpdfs
|
path: .currpdfs
|
||||||
@ -66,23 +66,4 @@ jobs:
|
|||||||
COMMIT_NAME: "github-actions[bot]"
|
COMMIT_NAME: "github-actions[bot]"
|
||||||
COMMIT_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
COMMIT_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
||||||
MESSAGE: "🤖 Hello human, trying to not break anything ({sha})"
|
MESSAGE: "🤖 Hello human, trying to not break anything ({sha})"
|
||||||
|
SKIP_EMPTY_COMMITS: true
|
||||||
|
|
||||||
- name: Generate web viewer content
|
|
||||||
run: |
|
|
||||||
python3 ${GITHUB_WORKSPACE}/.github/prepare_web_viewer.py \
|
|
||||||
--src-path=${GITHUB_WORKSPACE}/src \
|
|
||||||
--out-path=/tmp/webviewer \
|
|
||||||
--template-path=${GITHUB_WORKSPACE}/.github/web-viewer \
|
|
||||||
--gh-raw-pdf-url="https://raw.githubusercontent.com/NotXia/unibo-ai-notes/pdfs"
|
|
||||||
|
|
||||||
- name: Move to pages branch
|
|
||||||
uses: s0/git-publish-subdir-action@develop
|
|
||||||
env:
|
|
||||||
REPO: self
|
|
||||||
BRANCH: pages
|
|
||||||
FOLDER: /tmp/webviewer
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
COMMIT_NAME: "github-actions[bot]"
|
|
||||||
COMMIT_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
|
||||||
MESSAGE: "🤖 Web developer stuff"
|
|
||||||
5
.github/workflows/web.yml
vendored
5
.github/workflows/web.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
@ -38,4 +38,5 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
COMMIT_NAME: "github-actions[bot]"
|
COMMIT_NAME: "github-actions[bot]"
|
||||||
COMMIT_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
COMMIT_EMAIL: "github-actions[bot]@users.noreply.github.com"
|
||||||
MESSAGE: "🤖 Web developer stuff"
|
MESSAGE: "🤖 Web developer stuff"
|
||||||
|
SKIP_EMPTY_COMMITS: true
|
||||||
Reference in New Issue
Block a user