Skip to content

Blazor Merge Action

Actions

About

Combines the appsettings.json and appsettings.environment.json files into a single appsettings.json file
0.4.9.30
Latest
Star (0)

AppSettings.Merge GitHub Action for Blazor WebAssembly

This action merges the appsettings.json and appsettings.{environment}.json files from the source branch. It then removes all other appsettings files from your Blazor WebAssembly project.

This is to deal with the issue with Blazor WebAssembly all appsettings files are copied to the output directory. Which leaks all your appsettings files for every environment to the client.

Usage

After you have published your Blazor WebAssembly project, you can use this action to merge the appsettings files.

    - name: Combine Appsettings Files for environment
      uses: Afterlife-Guide/[email protected]
      with:
        app-environment: 'Production'
        path: '/web-publish/wwwroot/'

Inputs

app-environment

A string of the environment to merge the appsettings files for.

path

A string of the path to the wwwroot directory of your Blazor WebAssembly project.

Change Log

The change log can be found here.

License

Apache 2.0

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Blazor Merge Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Combines the appsettings.json and appsettings.environment.json files into a single appsettings.json file
0.4.9.30
Latest

Blazor Merge Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.