ci: allow checkout from another branch #19
1 changed files with 6 additions and 4 deletions
|
@ -26,13 +26,15 @@ jobs:
|
|||
image: git.asandikci.com/docker-images/website_builder:latest
|
||||
steps:
|
||||
- name: Git Clone
|
||||
env:
|
||||
BRANCH: ${{ github.ref_name }}
|
||||
run: |
|
||||
git clone https://git.asandikci.com/asandikci.com/web
|
||||
ls -la ./web
|
||||
git clone --no-checkout https://git.asandikci.com/asandikci.com/web .
|
||||
git checkout --progress --force "$BRANCH"
|
||||
|
||||
|
||||
- name: Build Site (with Drafts!)
|
||||
run: |
|
||||
cd web
|
||||
bundle install
|
||||
bundle exec jekyll b --drafts
|
||||
ls -la
|
||||
|
@ -51,7 +53,7 @@ jobs:
|
|||
- name: Deploy
|
||||
run: |
|
||||
mkdir deploy && cd deploy
|
||||
cp -rfv ../web/_site .
|
||||
cp -rfv ../_site .
|
||||
cd _site
|
||||
|
||||
# CURRENTLY USING PURE STFP FOR AUTH ONLY
|
||||
|
|
Loading…
Add table
Reference in a new issue