test: temp cancel first job and fix
Some checks failed
Build and Deploy Test Version (with/without Drafts) - next.asandikci.com / build-drafts-and-deploy (push) Failing after 1m44s

This commit is contained in:
Aliberk Sandıkçı 2024-11-16 00:12:37 +03:00
parent 3e67e3a310
commit e88eab0942

View file

@ -20,37 +20,37 @@ concurrency:
cancel-in-progress: true cancel-in-progress: true
jobs: jobs:
build-and-push-prod: # build-and-push-prod:
runs-on: docker # runs-on: docker
container: # container:
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
run: | # run: |
git clone https://git.asandikci.com/asandikci.com/web # git clone https://git.asandikci.com/asandikci.com/web
ls -la ./web # ls -la ./web
- name: Build Site # - name: Build Site
run: | # run: |
cd web # cd web
bundle install # bundle install
bundle exec jekyll b # bundle exec jekyll b
env: # env:
JEKYLL_ENV: "production" # JEKYLL_ENV: "production"
- name: Push to "website" branch # - name: Push to "website" branch
run: | # run: |
mkdir website_branch && cd website_branch # mkdir website_branch && cd website_branch
git clone https://git.asandikci.com/asandikci.com/web # git clone https://git.asandikci.com/asandikci.com/web
cd web # cd web
git checkout website # git checkout website
rm -rfv ./_site/ # rm -rfv ./_site/
cp -rfv ../../web/_site . # cp -rfv ../../web/_site .
git config --global user.name "Aliberk Sandıı (CI)" # git config --global user.name "Aliberk Sandıı (CI)"
git config --global user.email git+ci@asandikci.com # git config --global user.email git+ci@asandikci.com
git add -A # git add -A
git commit --all --message "Updated! [CI]" # git commit --all --message "Updated! [CI]"
git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web # git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web
build-drafts-and-deploy: build-drafts-and-deploy:
runs-on: docker runs-on: docker
@ -67,6 +67,8 @@ jobs:
cd web cd web
bundle install bundle install
bundle exec jekyll b --drafts bundle exec jekyll b --drafts
ls -la
pwd
env: env:
JEKYLL_ENV: "production" JEKYLL_ENV: "production"
@ -80,7 +82,9 @@ jobs:
- name: Deploy - name: Deploy
run: | run: |
mkdir deploy mkdir deploy && cd deploy
ls -la
pwd
cp -rfv ../web/_site . cp -rfv ../web/_site .
ls -la ls -la