From f5220aa6d351300972143a5fe2819a2505dc4dfd Mon Sep 17 00:00:00 2001 From: elyday Date: Wed, 25 Dec 2024 14:47:38 +0100 Subject: [PATCH] Add CI/CD workflow and remove acknowledgment page link Implemented a CI/CD workflow using Forgejo and Docker to automate site builds and deployments. Removed the "thanks" page and its corresponding link in the footer for content streamlining. --- .forgejo/workflows/ci-cd.yaml | 46 +++++++++++++++++++++++++++++++++++ _includes/footer.html | 1 - thanks.md | 13 ---------- 3 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 .forgejo/workflows/ci-cd.yaml delete mode 100644 thanks.md diff --git a/.forgejo/workflows/ci-cd.yaml b/.forgejo/workflows/ci-cd.yaml new file mode 100644 index 0000000..92a0810 --- /dev/null +++ b/.forgejo/workflows/ci-cd.yaml @@ -0,0 +1,46 @@ +on: ["push"] + +jobs: + ci: + name: CI + runs-on: docker + + container: + image: ghcr.io/catthehacker/ubuntu:act-22.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Prepare Ruby and Install Gems + uses: https://github.com/ruby/setup-ruby@v1 + with: + ruby-version: 3.3 + bundler-cache: true + + - name: Build Jekyll Site + run: bundle exec jekyll build + + - name: Pack Artifacts + uses: actions/upload-artifact@v3 + with: + name: jekyll site + path: _site/ + + cd: + name: CD + runs-on: docker + needs: ci + + steps: + - name: Download Artifact + uses: actions/download-artifact@v3 + with: + name: jekyll site + + - name: Upload Files + uses: SamKirkland/FTP-Deploy-Action@4 + with: + server: ${{ secrets.FTP_SERVER }} + username: ${{ secrets.FTP_USER }} + password: ${{ secrets.FTP_PASSWORD }} \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index c3e27ab..acc713a 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,5 +1,4 @@