diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 936371ed..5080f46f 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,7 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - name: Checkout 🛎️ + uses: actions/checkout@v2 + with: + persist-credentials: false - name: Setup .NET Core uses: actions/setup-dotnet@v1 @@ -39,6 +42,14 @@ jobs: BRANCH: gh-pages FOLDER: cargo/wwwroot + - name: Deploy to Github.io 🚀 + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.GH_PUSH_TOKEN }} + external_repository: ant-design-blazor/ant-design-blazor.github.io + publish_branch: master + publish_dir: ./cargo/wwwroot + - name: Package Nightly Nuget 📦 run: | dotnet pack components/AntBlazor.csproj /p:PackageVersion=$Version-nightly-$GITHUB_RUN_ID -c Release -o pack-$GITHUB_RUN_ID --no-build --no-restore