diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml deleted file mode 100644 index 1467c91..0000000 --- a/.forgejo/workflows/build.yaml +++ /dev/null @@ -1,32 +0,0 @@ -on: [push] -jobs: - build: - runs-on: docker - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Pandoc - run: | - apt-get update - apt-get install -y pandoc - - - name: Generate guide.html - run: bash update-guide.sh - - - name: Install Podman - run: | - apt-get update - apt-get install -y podman - - - name: Podman Login - run: | - echo "${{ secrets.DOCKER_PASSWORD }}" | podman login git.interhacker.space --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin - - - name: Build Container Image - run: | - podman build -t git.interhacker.space/interhack/camp-website-2026:latest . - - - name: Push Container Image - run: | - podman push git.interhacker.space/interhack/camp-website-2026:latest diff --git a/update-guide.sh b/update-guide.sh index 0bdd1bb..f1c4990 100755 --- a/update-guide.sh +++ b/update-guide.sh @@ -8,7 +8,7 @@ echo "Mise a jour du guide dans guide.html a partir du edgedoc" echo "$GUIDE_EDGEDOC_URL" set -e -curl --silent --fail "$GUIDE_EDGEDOC_URL/download" > guide.tmp.md +curl --silent --fail-with-body "$GUIDE_EDGEDOC_URL/download" > guide.tmp.md pandoc --from markdown --to html guide.tmp.md > guide.tmp.html cat guide.template.html \ | sed '/EDGEDOC/{