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,14 +32,19 @@ 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"
|
||||
|
||||
- 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: |
|
||||
mkdir website_branch && cd website_branch
|
||||
|
@ -50,10 +55,8 @@ 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: |
|
||||
|
@ -68,32 +71,3 @@ jobs:
|
|||
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