Merge pull request #913 from fossa-app/feat-init-departments #1170
This file contains hidden or 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
| name: CICD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| release: | |
| types: | |
| - published | |
| workflow_dispatch: | |
| permissions: read-all | |
| env: | |
| DOTNET_NOLOGO: true | |
| DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
| DOTNET_CLI_TELEMETRY_OPTOUT: true | |
| jobs: | |
| ci: | |
| name: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| fetch-depth: 0 | |
| - name: 'Install InvokeBuild Module' | |
| shell: pwsh | |
| run: Install-Module -Name InvokeBuild -Force | |
| - name: 'Restore' | |
| shell: pwsh | |
| run: .\restore.ps1 -Instance ${{github.run_id}} | |
| - name: 'Format' | |
| shell: pwsh | |
| run: .\format.ps1 -Instance ${{github.run_id}} | |
| - name: 'Version' | |
| shell: pwsh | |
| run: .\version.ps1 -Instance ${{github.run_id}} | |
| - name: 'Build' | |
| shell: pwsh | |
| run: .\build.ps1 -Instance ${{github.run_id}} | |
| - name: 'Test' | |
| shell: pwsh | |
| run: .\test.ps1 -Instance ${{github.run_id}} | |
| - name: 'Pack' | |
| shell: pwsh | |
| run: .\pack.ps1 -Instance ${{github.run_id}} | |
| - name: 'Publish Artefacts' | |
| uses: actions/upload-artifact@v4.6.2 | |
| with: | |
| name: .trash | |
| path: '.trash' | |
| include-hidden-files: true | |
| cd: | |
| name: CD | |
| needs: ci | |
| if: github.event_name == 'release' | |
| environment: | |
| name: 'DockerHub' | |
| url: https://hub.docker.com/r/tiksn/fossa-ui | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| fetch-depth: 0 | |
| - name: 'Download Artefact' | |
| uses: actions/download-artifact@v4.3.0 | |
| with: | |
| name: '.trash' | |
| path: './.trash' | |
| - name: 'Install InvokeBuild Module' | |
| shell: pwsh | |
| run: Install-Module -Name InvokeBuild -Force | |
| - name: 'Publish' | |
| env: | |
| DOCKER_ACCESS_TOKEN: ${{secrets.DOCKER_ACCESS_TOKEN}} | |
| shell: pwsh | |
| run: .\publish.ps1 -Instance ${{github.run_id}} |