-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1032 from fabulous-dev/migrate-xf-and-maui
Remove Fab.XF and Fab.MauiControls after migration to other repos
- Loading branch information
Showing
814 changed files
with
939 additions
and
45,301 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
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,45 +1,47 @@ | ||
name: gh-pages | ||
|
||
on: | ||
push: | ||
branches: ['v2.1'] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check out the docs branch containing the Doks website | ||
- name: Checkout docs branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: docs | ||
|
||
# Copy the content of the docs folder from v2.1 branch to docs branch | ||
- name: Copy docs from v2.1 | ||
run: | | ||
git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/v2.1*:refs/remotes/origin/v2.1* | ||
git checkout --progress --force refs/remotes/origin/v2.1 -- docs | ||
mv docs/content content | ||
rm -r docs | ||
# Build website | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Check for linting errors | ||
run: npm test | ||
|
||
- name: Build production website | ||
run: npm run build | ||
|
||
# Deploy to GitHub Pages branch | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./public | ||
### DISABLED UNTIL WEBSITE IS MIGRATED TO NEW REPO | ||
|
||
# name: gh-pages | ||
|
||
# on: | ||
# push: | ||
# branches: ['v2.1'] | ||
|
||
# jobs: | ||
# deploy: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # Check out the docs branch containing the Doks website | ||
# - name: Checkout docs branch | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# ref: docs | ||
|
||
# # Copy the content of the docs folder from v2.1 branch to docs branch | ||
# - name: Copy docs from v2.1 | ||
# run: | | ||
# git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/v2.1*:refs/remotes/origin/v2.1* | ||
# git checkout --progress --force refs/remotes/origin/v2.1 -- docs | ||
# mv docs/content content | ||
# rm -r docs | ||
|
||
# # Build website | ||
# - uses: actions/setup-node@v2 | ||
# with: | ||
# node-version: '16' | ||
# cache: 'npm' | ||
|
||
# - name: Install dependencies | ||
# run: npm install | ||
|
||
# - name: Check for linting errors | ||
# run: npm test | ||
|
||
# - name: Build production website | ||
# run: npm run build | ||
|
||
# # Deploy to GitHub Pages branch | ||
# - name: Deploy to GitHub Pages | ||
# uses: peaceiris/actions-gh-pages@v3 | ||
# with: | ||
# github_token: ${{ secrets.GITHUB_TOKEN }} | ||
# publish_dir: ./public |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -6,42 +6,13 @@ on: | |
|
||
permissions: write-all | ||
|
||
jobs: | ||
xf: | ||
name: Fabulous.XamarinForms | ||
runs-on: macos-latest | ||
environment: nuget | ||
env: | ||
SLN_FILE: Fabulous.XamarinForms.NoSamples.sln | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Extract version from tag | ||
uses: damienaicheh/[email protected] | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Restore | ||
run: dotnet restore ${SLN_FILE} | ||
- name: Build | ||
run: dotnet build ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --no-restore --configuration Release | ||
- name: Test | ||
run: dotnet test ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --no-build --configuration Release | ||
- name: Pack | ||
run: | | ||
find templates -type f -name template.json | xargs sed -i bak "s/FABULOUS_PKG_VERSION/${MAJOR}.${MINOR}.${PATCH}/g" | ||
dotnet pack ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --configuration Release --output nupkgs | ||
dotnet pack templates/Xamarin.Forms/Fabulous.XamarinForms.Templates.proj -p:Version="${MAJOR}.${MINOR}.${PATCH}" --configuration Release --output nupkgs | ||
- name: Push | ||
run: | | ||
dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate | ||
env: | ||
SLN_FILE: Fabulous.sln | ||
|
||
maui: | ||
name: Fabulous.MauiControls | ||
runs-on: macos-12 | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
environment: nuget | ||
env: | ||
SLN_FILE: Fabulous.MauiControls.NoSamples.sln | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Extract version from tag | ||
|
@@ -50,19 +21,13 @@ jobs: | |
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Install dotnet workload | ||
run: dotnet workload install maui --from-rollback-file .github/workflows/maui-WorkloadManifest.json | ||
- name: Restore | ||
run: dotnet restore ${SLN_FILE} | ||
- name: Build | ||
run: dotnet build ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --no-restore --configuration Release | ||
- name: Test | ||
run: dotnet test ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --no-build --configuration Release | ||
- name: Pack | ||
run: | | ||
find templates -type f -name template.json | xargs sed -i bak "s/FABULOUS_PKG_VERSION/${MAJOR}.${MINOR}.${PATCH}/g" | ||
dotnet pack ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --configuration Release --output nupkgs | ||
dotnet pack templates/Maui/Fabulous.MauiControls.Templates.proj -p:Version="${MAJOR}.${MINOR}.${PATCH}" --configuration Release --output nupkgs | ||
run: dotnet pack ${SLN_FILE} -p:Version="${MAJOR}.${MINOR}.${PATCH}" --configuration Release --output nupkgs | ||
- name: Push | ||
run: | | ||
dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate | ||
run: dotnet nuget push "nupkgs/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate |
Oops, something went wrong.