deploy.yml 701 B

123456789101112131415161718192021222324252627282930
  1. name: Deploy
  2. on:
  3. push:
  4. tags:
  5. - 'v*'
  6. jobs:
  7. deploy:
  8. runs-on: windows-latest
  9. steps:
  10. - uses: actions/checkout@v3
  11. - uses: actions/setup-dotnet@v2
  12. - name: Build
  13. run: dotnet publish -o "publish" -c Release -r win-x64
  14. - name: Create installer
  15. run: |
  16. dotnet tool install --global wix --version 4.0.1
  17. wix build Product.wxs -o "publish/Install DesktopClock.msi"
  18. - name: Create GitHub release
  19. uses: ncipollo/release-action@v1
  20. with:
  21. artifacts: "publish/*.exe,publish/*.msi"
  22. allowUpdates: true
  23. artifactErrorsFailBuild: true
  24. prerelease: contains(github.ref, 'beta')