Skip to content

Commit

Permalink
1.8.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
karamem0 committed Mar 28, 2022
1 parent 08f21d0 commit faf4a9f
Show file tree
Hide file tree
Showing 177 changed files with 25,396 additions and 45,023 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/develop.yml

This file was deleted.

68 changes: 45 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,24 @@ on:
push:
branches:
- main
- develop

jobs:
build:
runs-on: windows-latest
steps:
- name: Set environment variables
if: contains(github.ref, 'refs/heads/main')
run: |
ConvertFrom-Json -InputObject '${{secrets.PRD_GITHUB_ENV}}' `
| %{ $_.PSObject.Properties } `
| %{ Add-Content -Path $env:GITHUB_ENV -Value ($_.Name + '=' + $_.Value) }
- name: Set environment variables
if: contains(github.ref, 'refs/heads/develop')
run: |
ConvertFrom-Json -InputObject '${{secrets.DEV_GITHUB_ENV}}' `
| %{ $_.PSObject.Properties } `
| %{ Add-Content -Path $env:GITHUB_ENV -Value ($_.Name + '=' + $_.Value) }
- name: Checkout repos
uses: actions/checkout@v2
- name: Setup Node.js 16.x
Expand All @@ -18,58 +31,67 @@ jobs:
working-directory: source/client
- name: Build client
env:
REACT_APP_AUTH_TENANT_ID: ${{secrets.PRD_TENANT_ID}}
REACT_APP_AUTH_CLIENT_ID: ${{secrets.PRD_CLIENT_ID}}
REACT_APP_AUTH_TENANT_ID: ${{env.TENANT_ID}}
REACT_APP_AUTH_APP_ID: ${{env.APP_ID}}
REACT_APP_APP_INSIGHTS_INSTRUMENTATION_KEY: ${{env.APP_INSIGHTS_INSTRUMENTATION_KEY}}
run: npm run build
working-directory: source/client
- name: Test client
run: npm run test
run: npm run test-ci
working-directory: source/client
- name: Publish test results
uses: enricomi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: source/client/coverage/junit.xml
check_name: test results
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.x
- name: Restore server
run: dotnet restore source/server
- name: Build server
run: dotnet build source/server -c Release
- name: Publish server
run: dotnet publish source/server -c Release
- name: Copy build file
shell: pwsh
- name: Copy build files
run: |
New-Item -Type Directory -Path artifact/build
Copy-Item -Path source/client/build/* -Destination artifact/build -Recurse
New-Item -Type Directory -Path artifact/build/api
Copy-Item -Path source/server/bin/Release/net5.0/publish/* -Destination artifact/build/api -Recurse
- name: Upload build file
Copy-Item -Path source/server/bin/Release/net6.0/publish/* -Destination artifact/build/api -Recurse
- name: Upload build files
uses: actions/upload-artifact@v2
with:
name: teamtile-build
path: artifact/build
- name: Build manifest file
shell: pwsh
- name: Rewrite manifest.json
run: |
$content = Get-Content -Path manifest/manifest.json
$content = $content -replace "{{AppId}}", "${{secrets.PRD_APP_ID}}"
$content = $content -replace "{{ClientId}}", "${{secrets.PRD_CLIENT_ID}}"
$content = $content -replace "{{DomainName}}", "${{secrets.PRD_DOMAIN_NAME}}"
$content = $content -replace "{{AppId}}", "${{env.APP_ID}}"
$content = $content -replace "{{AppDomain}}", "${{env.APP_DOMAIN}}"
Out-File -FilePath manifest/manifest.json -InputObject $content -Encoding UTF8
- name: Copy manifest file
shell: pwsh
run: |
New-Item -Type Directory -Path artifact/manifest
Copy-Item -Path manifest/* -Destination artifact/manifest -Recurse
- name: Upload manifest file
- name: Upload manifest files
uses: actions/upload-artifact@v2
with:
name: teamtile-manifest
path: artifact/manifest
path: manifest
deploy:
needs: build
runs-on: windows-latest
steps:
- name: Download build artifact
- name: Set environment variables
if: contains(github.ref, 'refs/heads/main')
run: |
ConvertFrom-Json -InputObject '${{secrets.PRD_GITHUB_ENV}}' `
| %{ $_.PSObject.Properties } `
| %{ Add-Content -Path $env:GITHUB_ENV -Value ($_.Name + '=' + $_.Value) }
- name: Set environment variables
if: contains(github.ref, 'refs/heads/develop')
run: |
ConvertFrom-Json -InputObject '${{secrets.DEV_GITHUB_ENV}}' `
| %{ $_.PSObject.Properties } `
| %{ Add-Content -Path $env:GITHUB_ENV -Value ($_.Name + '=' + $_.Value) }
- name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: teamtile-build
Expand All @@ -81,5 +103,5 @@ jobs:
- name: Deploy to Azure Web App
uses: azure/webapps-deploy@v2
with:
app-name: ${{secrets.PRD_APP_NAME}}
app-name: ${{env.APP_NAME}}
package: build
27 changes: 27 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,30 @@ $RECYCLE.BIN/

# Windows shortcuts
*.lnk

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 karamem0
Copyright (c) 2022 karamem0

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit faf4a9f

Please sign in to comment.