ci: allow checkout from another branch
Some checks failed
Build and Deploy Test Version (with Drafts) - next.asandikci.com / build-drafts-and-deploy (push) Failing after 3m3s
Some checks failed
Build and Deploy Test Version (with Drafts) - next.asandikci.com / build-drafts-and-deploy (push) Failing after 3m3s
Signed-off-by: asandikci <git@asandikci.com>
This commit is contained in:
parent
4d0ef926c9
commit
096bd8c91b
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue