Skip to content

Commit

Permalink
ci: Fixed the publishing landing page issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed Jun 2, 2024
1 parent cf30330 commit 2dc1dc2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/landing-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,29 @@ jobs:
- name: Generate rolling release
run: |
git fetch --prune --unshallow --tags
stable_version=$(git describe --tags $(git rev-list --tags --max-count=1))
tags=$(git rev-list --tags --max-count=1)
stable_version=$(git describe --always --tags $tags)
file_name=ebook-translator_$(git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d%H%M%S').zip
file_path=./${{ env.directory }}/download
mkdir -p $file_path
git archive --format=zip --output=$file_path/$file_name ${{ env.branch }}
pattern="\1\nrolling_url: $file_name\nstable_version: $stable_version"
sed -i "s/\(layout:.*\)/$pattern/" ./${{ env.directory }}/index.md
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./${{ env.directory }}/
destination: ./${{ env.directory }}/_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./${{ env.directory }}/_site

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
Expand Down

0 comments on commit 2dc1dc2

Please sign in to comment.