-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '23_2' into ts-navigation
- Loading branch information
Showing
2,311 changed files
with
188,916 additions
and
28,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build aspnet demos | ||
|
||
concurrency: | ||
group: wf-${{ github.event.pull_request.number || github.sha }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- "[0-9][0-9]_[0-9]" | ||
|
||
jobs: | ||
build: | ||
name: Build aspnet demos | ||
runs-on: windows-2019 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork == false | ||
|
||
steps: | ||
- name: Get sources | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get version | ||
id: get_version | ||
run: | | ||
$env:version=$(node -p -e "require('./package.json').version.slice(0, 4).replace('.', '_')") | ||
echo "version=$env:version" >> $GITHUB_OUTPUT | ||
- name: Clone devextreme-aspnet repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: DevExpress/devextreme-aspnet | ||
ref: ${{ steps.get_version.outputs.version }} | ||
path: devextreme-aspnet | ||
token: ${{ secrets.ASPNET_PAT }} | ||
|
||
- name: Restore npm cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./node_modules | ||
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Run npm install | ||
run: npm install --no-audit --no-fund | ||
|
||
- name: Update repository.config.json | ||
run: | | ||
$jsonData = Get-Content -Raw -Path "repository.config.json" | ConvertFrom-Json | ||
$jsonData.DevExtreme = "${{ github.workspace }}\DevExtreme" | ||
$jsonData."devextreme-aspnet" = "${{ github.workspace }}\devextreme-aspnet" | ||
$jsonData | ConvertTo-Json | Set-Content -Path "repository.config.json" | ||
- name: Run prepare-aspnet | ||
run: npm run prepare-aspnet | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Build MVC demos | ||
working-directory: MVCDemos | ||
run: | | ||
nuget restore DevExtreme.MVC.Demos.sln | ||
msbuild DevExtreme.MVC.Demos.sln | ||
- name: Build Core demos | ||
working-directory: NetCoreDemos | ||
run: dotnet build DevExtreme.NETCore.Demos.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Publish Demos to GH Pages | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'release-*' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install jq | ||
run: sudo apt-get install -y jq | ||
|
||
- name: Read version from package.json and append "-stable" | ||
run: echo echo "STABLE_VERSION=$(jq -r '.version' package.json | awk -F. '{print $1 "." $2}')-stable" >> $GITHUB_ENV | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
|
||
- name: Install stable devextreme pacakges | ||
run: npm install devextreme@${{ env.STABLE_VERSION }} devextreme-angular@${{ env.STABLE_VERSION }} devextreme-react@${{ env.STABLE_VERSION }} devextreme-vue@${{ env.STABLE_VERSION }} | ||
|
||
- name: Copy metadata | ||
run: npm run make-demos-bundle -- --copy-metadata | ||
|
||
- name: Prepare React demo bundles | ||
run: npm run make-demos-bundle -- --framework React | ||
|
||
- name: Prepare Vue demo bundles | ||
run: npm run make-demos-bundle -- --framework Vue | ||
|
||
- name: Deploy to gh-pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./publish-demos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ | |
*.json | ||
MVCDemos | ||
NetCoreDemos | ||
.github | ||
.github | ||
publish-demos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
MVCDemos | ||
NetCoreDemos | ||
publish-demos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"editor.tabSize": 2, | ||
} |
Oops, something went wrong.