update ci: include drafts and test site
Some checks failed
Build and Deploy Test Version (with Drafts!) - next.asandikci.com / build_deploy (push) Failing after 1m2s

Signed-off-by: asandikci <git@asandikci.com>
This commit is contained in:
Aliberk Sandıkçı 2024-11-15 22:57:54 +03:00
parent 22021775b6
commit cfb7af6313

View file

@ -1,4 +1,4 @@
name: "Build and Deploy Test Version - next.asandikci.com" name: "Build and Deploy Test Version (with Drafts!) - next.asandikci.com"
on: on:
push: push:
branches: branches:
@ -32,14 +32,19 @@ jobs:
- name: Build Site - name: Build Site
run: | run: |
ruby -v
cd web cd web
bundle install bundle install
bundle exec jekyll b bundle exec jekyll b --drafts
ls -la
env: env:
JEKYLL_ENV: "production" JEKYLL_ENV: "production"
- name: Test Site
run: |
cd web
bundle exec htmlproofer _site \
\-\-disable-external=true \
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
- name: Push to "website" branch - name: Push to "website" branch
run: | run: |
mkdir website_branch && cd website_branch mkdir website_branch && cd website_branch
@ -50,10 +55,8 @@ jobs:
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 "built latest static sources from main" git commit --all --message "Updated! [CI]"
git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web --all git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web
- name: Checkout & Deploy - name: Checkout & Deploy
run: | run: |
@ -68,32 +71,3 @@ jobs:
put -r . www/ put -r . www/
bye bye
! !
# - name: Setup Pages
# id: pages
# uses: actions/configure-pages@v4
# - name: Setup Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.2
# bundler-cache: true
# - name: Build site
# run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
# env:
# JEKYLL_ENV: "production"
# - name: Test site
# run: |
# bundle exec htmlproofer _site \
# \-\-disable-external=true \
# \-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
# - name: Upload site artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: "_site${{ steps.pages.outputs.base_path }}"