Skip to content

ChristopheLav/iis-deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IIS Deploy action

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'}
)}

Requirements

  • A Windows runner
  • A runner with Web Deploy 3.0+ (more information here and here)

What's new

Refer here to the changelog.

Inputs

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

Usage

- 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

License

The scripts and documentation in this project are released under the MIT License