Merge pull request 'ci: allow checkout from another branch' (#19) from main into test-for-subpages

Reviewed-on: #19
This commit is contained in:
Aliberk Sandıkçı 2025-01-19 18:45:14 +03:00
commit 4c2ec5f591

View file

@ -26,13 +26,15 @@ jobs:
image: git.asandikci.com/docker-images/website_builder:latest image: git.asandikci.com/docker-images/website_builder:latest
steps: steps:
- name: Git Clone - name: Git Clone
env:
BRANCH: ${{ github.ref_name }}
run: | run: |
git clone https://git.asandikci.com/asandikci.com/web git clone --no-checkout https://git.asandikci.com/asandikci.com/web .
ls -la ./web git checkout --progress --force "$BRANCH"
- name: Build Site (with Drafts!) - name: Build Site (with Drafts!)
run: | run: |
cd web
bundle install bundle install
bundle exec jekyll b --drafts bundle exec jekyll b --drafts
ls -la ls -la
@ -51,7 +53,7 @@ jobs:
- name: Deploy - name: Deploy
run: | run: |
mkdir deploy && cd deploy mkdir deploy && cd deploy
cp -rfv ../web/_site . cp -rfv ../_site .
cd _site cd _site
# CURRENTLY USING PURE STFP FOR AUTH ONLY # CURRENTLY USING PURE STFP FOR AUTH ONLY