From bdf4b15fc2294b1f1a3c5ccec9779bb163993181 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 18 Aug 2024 22:21:03 +0800 Subject: [PATCH] refactor: use actions/upload-pages-artifact --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3657473..4faaf3f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,11 +46,10 @@ jobs: CDNJS_BASE_URL: https://cdnjs.baoshuo.ren/ajax/libs - name: Upload Build Output to Artifacts - uses: actions/upload-artifact@v4 + uses: actions/upload-pages-artifact@v4 with: - name: dist path: ${{ github.workspace }}/out/ - if-no-files-found: error + retention-days: 30 deploy-gh-pages: name: Deploy Site to GitHub Pages @@ -69,7 +68,6 @@ jobs: id: deployment uses: actions/deploy-pages@v4 with: - artifact_name: dist ## Is this attempting to deploy a pull request as a GitHub Pages preview site? ## NOTE: This feature is only in alpha currently and is not available to the public! - # preview: ${{ github.event_name != 'push' }} + preview: false # ${{ github.event_name != 'push' }}