This action allows to deploy a website on IIS.
This action is based on Microsoft scripts bundled with some versions of Visual Studio.
The MS Deploy configuration uses these default settings:
WebPublishMethod
=MSDeploy
SkipExtraFilesOnServer
=false
EnableMSDeployAppOffline
=true
Also, some generic directories and files are excluded to prevent data loose:
'ExcludeFiles'=@(
@{'objectname'='filePath';'absolutepath'='.*google.*\.html'},
@{'objectname'='filePath';'absolutepath'='.*BingSiteAuth\.xml'},
@{'objectname'='filePath';'absolutepath'='logs\\.*'},
@{'objectname'='dirPath';'absolutepath'='logs'},
@{'objectname'='filePath';'absolutepath'='data\\.*'},
@{'objectname'='dirPath';'absolutepath'='data'}
)}
Refer here to the changelog.
It is recommended to put the msdeploy-username
and msdeploy-password
into a GitHub secrets to prevent clear value in your workflow.
Input | Required | Example | Default Value | Description |
---|---|---|---|---|
website-name |
Yes | www.yourwebsite.ca |
Name of your website on IIS | |
msdeploy-service-url |
Yes | https://yourwebsite.ca:8172 |
MS Deploy Service URL | |
msdeploy-username |
Yes | username |
Username used by Basic authentication to the MS Deploy Service | |
msdeploy-password |
Yes | password |
Password used by Basic authentication to the MS Deploy Service | |
source-path |
Yes | ${{ github.workspace }}\website\publish |
The path to the source directory that will be deployed |
- uses: ChristopheLav/iis-deploy@v1
with:
website-name: 'MyWebsite'
msdeploy-service-url: ${{ secrets.MSDEPLOY_URL }}
msdeploy-username: ${{ secrets.MSDEPLOY_USERNAME }}
msdeploy-password: ${{ secrets.MSDEPLOY_PASSWORD }}
source-path: ${{ github.workspace }}\website\publish
The scripts and documentation in this project are released under the MIT License