diff --git a/.forgejo/workflows/build_and_test.yml b/.forgejo/workflows/build_and_test.yml index 0dc3dd1..34f0066 100644 --- a/.forgejo/workflows/build_and_test.yml +++ b/.forgejo/workflows/build_and_test.yml @@ -20,37 +20,37 @@ concurrency: cancel-in-progress: true jobs: - build-and-push-prod: - runs-on: docker - container: - image: git.asandikci.com/docker-images/website_builder:latest - steps: - - name: Git Clone - run: | - git clone https://git.asandikci.com/asandikci.com/web - ls -la ./web + # build-and-push-prod: + # runs-on: docker + # container: + # image: git.asandikci.com/docker-images/website_builder:latest + # steps: + # - name: Git Clone + # run: | + # git clone https://git.asandikci.com/asandikci.com/web + # ls -la ./web - - name: Build Site - run: | - cd web - bundle install - bundle exec jekyll b - env: - JEKYLL_ENV: "production" + # - name: Build Site + # run: | + # cd web + # bundle install + # bundle exec jekyll b + # env: + # JEKYLL_ENV: "production" - - name: Push to "website" branch - run: | - mkdir website_branch && cd website_branch - git clone https://git.asandikci.com/asandikci.com/web - cd web - git checkout website - rm -rfv ./_site/ - cp -rfv ../../web/_site . - git config --global user.name "Aliberk Sandıkçı (CI)" - git config --global user.email git+ci@asandikci.com - git add -A - git commit --all --message "Updated! [CI]" - git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web + # - name: Push to "website" branch + # run: | + # mkdir website_branch && cd website_branch + # git clone https://git.asandikci.com/asandikci.com/web + # cd web + # git checkout website + # rm -rfv ./_site/ + # cp -rfv ../../web/_site . + # git config --global user.name "Aliberk Sandıkçı (CI)" + # git config --global user.email git+ci@asandikci.com + # git add -A + # git commit --all --message "Updated! [CI]" + # git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web build-drafts-and-deploy: runs-on: docker @@ -67,6 +67,8 @@ jobs: cd web bundle install bundle exec jekyll b --drafts + ls -la + pwd env: JEKYLL_ENV: "production" @@ -80,7 +82,9 @@ jobs: - name: Deploy run: | - mkdir deploy + mkdir deploy && cd deploy + ls -la + pwd cp -rfv ../web/_site . ls -la