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
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:
parent
22021775b6
commit
cfb7af6313
1 changed files with 13 additions and 39 deletions
|
@ -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,13 +32,18 @@ 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: |
|
||||||
|
@ -50,11 +55,9 @@ jobs:
|
||||||
git config --global user.name "Aliberk Sandıkçı (CI)"
|
git config --global user.name "Aliberk Sandıkçı (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: |
|
||||||
mkdir deploy && cd deploy
|
mkdir deploy && cd deploy
|
||||||
|
@ -67,33 +70,4 @@ jobs:
|
||||||
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
sshpass -f ~/.passwd sftp -oBatchMode=no -o StrictHostKeyChecking=accept-new -b - ${{ secrets.SFTP_USERNAME }}@${{ vars.SFTP_HOST }} << !
|
||||||
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 }}"
|
|
Loading…
Reference in a new issue