This commit is contained in:
parent
1744112372
commit
bd02f1fcaa
@ -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
|
||||
- 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user