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:
|
||||
push:
|
||||
branches:
|
||||
|
@ -32,13 +32,18 @@ jobs:
|
|||
|
||||
- name: Build Site
|
||||
run: |
|
||||
ruby -v
|
||||
cd web
|
||||
bundle install
|
||||
bundle exec jekyll b
|
||||
ls -la
|
||||
bundle exec jekyll b --drafts
|
||||
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
|
||||
run: |
|
||||
|
@ -50,11 +55,9 @@ jobs:
|
|||
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 "built latest static sources from main"
|
||||
git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web --all
|
||||
git commit --all --message "Updated! [CI]"
|
||||
git push https://asandikci:${{ secrets.PUSH_KEY }}@git.asandikci.com/asandikci.com/web
|
||||
|
||||
|
||||
|
||||
- name: Checkout & Deploy
|
||||
run: |
|
||||
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 }} << !
|
||||
put -r . www/
|
||||
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