This commit is contained in:
parent
1744112372
commit
bd02f1fcaa
@ -34,29 +34,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Ruby
|
- name: checkout pages
|
||||||
uses: ruby/setup-ruby@v1
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ruby-version: '3.3.5' # Not needed with a .ruby-version file
|
ref: 'pages'
|
||||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
path: 'pages'
|
||||||
cache-version: 0 # Increment this number if you need to re-download cached gems
|
# - 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
|
- name: Build with Jekyll
|
||||||
# Outputs to the './_site' directory by default
|
# Outputs to the './_site' directory by default
|
||||||
run: bundle exec jekyll build
|
run: bundle exec jekyll build --destination pages
|
||||||
env:
|
env:
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
- name: Upload artifact
|
- name: push pages
|
||||||
# Automatically uploads an artifact from the './_site' directory by default
|
run: |
|
||||||
uses: actions/upload-pages-artifact@v3
|
cd pages && \
|
||||||
|
git config user.name "${{ gitea.actor }}" && \
|
||||||
# Deployment job
|
git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \
|
||||||
deploy:
|
git add . && \
|
||||||
environment:
|
git commit -m "jekyll build from Action ${GITHUB_SHA}" && \
|
||||||
name: github-pages
|
git push
|
||||||
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user