Skip to content

Commit

Permalink
ci: implemented that deploys the new website
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed Jun 17, 2024
1 parent f5822d3 commit b9109e0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout Local Repository
uses: actions/checkout@v4
- name: Checkout Automation Repository without removing prior checkouts
Expand All @@ -62,6 +66,8 @@ jobs:
HUSKY: 0
name: Install the dependencies
run: corepack up
- name: Run the build to generate the website
run: pnpm run build
- name: Load cached data from previous runs
uses: actions/cache@v4
with:
Expand All @@ -73,6 +79,8 @@ jobs:
run: ${{ env.pathToCi }}/build.cmd BuildRepoListing --root ${{ env.pathToCi }} --list-publish-directory $GITHUB_WORKSPACE/${{ env.listPublishDirectory }} --current-package-name ${{ vars.PACKAGE_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Overwrite the VPM Listing Website by the generated one
run: cp -r .output/public/* $GITHUB_WORKSPACE/${{ env.listPublishDirectory }}
- name: Prepare for GitHub Pages deployment
uses: actions/configure-pages@v5
with:
Expand Down

0 comments on commit b9109e0

Please sign in to comment.