From b4aeea5b1a0aa801804498f6b15284b82a9c795d Mon Sep 17 00:00:00 2001 From: ATQlove <1284901271@qq.com> Date: Thu, 18 Jul 2024 11:07:39 +0800 Subject: [PATCH] Revert "Add GitHub Actions workflow for converting and deploying files" This reverts commit 05ddb3347c81d33e0474a8107e3172f0037793f8. --- .github/workflows/convert-and-deploy.yml | 36 ------------------------ 1 file changed, 36 deletions(-) delete mode 100644 .github/workflows/convert-and-deploy.yml diff --git a/.github/workflows/convert-and-deploy.yml b/.github/workflows/convert-and-deploy.yml deleted file mode 100644 index 65ef59f..0000000 --- a/.github/workflows/convert-and-deploy.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Convert and Deploy - -on: - push: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Install Pandoc - run: sudo apt-get install -y pandoc - - - name: Find and Convert TeXmacs to Docx - run: | - mkdir -p converted_files - find . -name "*.tm" -print0 | while IFS= read -r -d '' file; do - output="converted_files/${file%.tm}.docx" - mkdir -p "$(dirname "$output")" - pandoc "$file" -o "$output" - done - - - name: Deploy to gh-pages branch - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git checkout --orphan gh-pages - git reset --hard - cp -r converted_files/* . - git add . - git commit -m "Deploy converted files to GitHub Pages" - git push -f origin gh-pages