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.
This commit is contained in:
parent
7a7cccd893
commit
f5220aa6d3
3 changed files with 46 additions and 14 deletions
46
.forgejo/workflows/ci-cd.yaml
Normal file
46
.forgejo/workflows/ci-cd.yaml
Normal file
|
@ -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 }}
|
|
@ -1,5 +1,4 @@
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<a class="footer_item" href="/thanks">ack.</a>
|
|
||||||
<a class="footer_item" href="javascript::void(0)">resume</a>
|
<a class="footer_item" href="javascript::void(0)">resume</a>
|
||||||
<a class="footer_item" href="/feed.xml">rss</a>
|
<a class="footer_item" href="/feed.xml">rss</a>
|
||||||
<span class="footer_item">© {{ site.time | date: "%Y" }}</span>
|
<span class="footer_item">© {{ site.time | date: "%Y" }}</span>
|
||||||
|
|
13
thanks.md
13
thanks.md
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
title: Acknowledgment
|
|
||||||
permalink: /thanks/
|
|
||||||
layout: page
|
|
||||||
excerpt: Thanks to amazing people that i met, who help me out from follishness, connecting me with another good person, giving some advice when i'm at a bad things, pulling me from ordinary to be great.
|
|
||||||
comments: false
|
|
||||||
---
|
|
||||||
|
|
||||||
Thanks to amazing people that i met, who help me out from follishness, connecting me with another good person, giving some advice when i'm at a bad things, pulling me from ordinary to be great.
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
Hopefully the knowledge that I got from them can be useful, and become a charity for them, Aamiin.
|
|
Loading…
Add table
Reference in a new issue