-
-
Notifications
You must be signed in to change notification settings - Fork 135
52 lines (43 loc) Β· 1.83 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
ο»Ώname: Publish Docs
env:
Version: 0.1.0
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
on:
push:
branches:
- master
jobs:
publish-and-deploy:
runs-on: ubuntu-latest
if: github.repository_owner == 'ant-design-blazor'
steps:
- name: Checkout ποΈ
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.100
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Publish Docs π
run: |
npm install
echo "/* updated `date "+%Y-%m-%d %H:%M:%S"` */" >> ./src/AntDesign.Pro/wwwroot/service-worker.published.js
cp -rf .github/deploy/gh-pages/* .github/deploy/gh-pages/.nojekyll .github/deploy/gh-pages/.spa ./src/AntDesign.Pro/wwwroot
dotnet build ./AntDesign.Pro.sln
dotnet publish ./src/AntDesign.Pro/AntDesign.Pro.csproj -c Release -o cargo
- name: Publish to Nuget β
run: |
FULL_VERSION=$Version-nightly-`date "+%y%m%d%H%M"`
echo "Version: ${FULL_VERSION}"
dotnet pack templates.csproj /p:PackageVersion=${FULL_VERSION} -c Release -o publish /p:NoDefaultExcludes=true
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate
- name: Deploy π
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
BRANCH: gh-pages
FOLDER: cargo/wwwroot