diff --git a/.forgejo/workflows/build_and_test.yml b/.forgejo/workflows/build_and_test.yml index a14e398..f028f73 100644 --- a/.forgejo/workflows/build_and_test.yml +++ b/.forgejo/workflows/build_and_test.yml @@ -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 }}" \ No newline at end of file + ! \ No newline at end of file