From bd02f1fcaa9a9bc00a64c7bd2c240c3da32ad1dc Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Wed, 13 Nov 2024 15:04:45 +0100 Subject: [PATCH] next try --- .gitea/workflows/pages-deploy.yaml | 40 ++++++++++++++---------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/pages-deploy.yaml b/.gitea/workflows/pages-deploy.yaml index 90ea4d2..a0e63ff 100644 --- a/.gitea/workflows/pages-deploy.yaml +++ b/.gitea/workflows/pages-deploy.yaml @@ -34,29 +34,27 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Ruby - uses: ruby/setup-ruby@v1 + - name: checkout pages + uses: actions/checkout@v4 with: - ruby-version: '3.3.5' # Not needed with a .ruby-version file - bundler-cache: true # runs 'bundle install' and caches installed gems automatically - cache-version: 0 # Increment this number if you need to re-download cached gems + ref: 'pages' + path: 'pages' +# - name: Setup Ruby +# uses: ruby/setup-ruby@v1 +# with: +# ruby-version: '3.3.5' # Not needed with a .ruby-version file +# bundler-cache: true # runs 'bundle install' and caches installed gems automatically +# cache-version: 0 # Increment this number if you need to re-download cached gems - name: Build with Jekyll # Outputs to the './_site' directory by default - run: bundle exec jekyll build + run: bundle exec jekyll build --destination pages env: JEKYLL_ENV: production - - name: Upload artifact - # Automatically uploads an artifact from the './_site' directory by default - uses: actions/upload-pages-artifact@v3 - - # Deployment job - deploy: - environment: - name: github-pages - url: "https://pages-test.morlana.net" - runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + - name: push pages + run: | + cd pages && \ + git config user.name "${{ gitea.actor }}" && \ + git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \ + git add . && \ + git commit -m "jekyll build from Action ${GITHUB_SHA}" && \ + git push