elyday.dev/.forgejo/workflows/ci-cd.yaml
elyday 97d2fb5499
Some checks failed
/ CI (push) Successful in 12s
/ CD (push) Failing after 3s
Update FTP-Deploy-Action to version 4.3.5
Upgraded the FTP-Deploy-Action dependency in CI/CD workflow to a specific version (4.3.5) for better stability and predictability. This ensures compatibility and avoids potential issues with unpinned versions.
2024-12-25 14:52:42 +01:00

49 lines
No EOL
1 KiB
YAML

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
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: jekyll site
- name: Upload Files
uses: https://github.com/SamKirkland/FTP-Deploy-Action@4.3.5
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}