Skip to content

Commit

Permalink
- added version to release file name
Browse files Browse the repository at this point in the history
  • Loading branch information
tcartwright committed Sep 6, 2021
1 parent f545bad commit 01ccaea
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,40 +100,41 @@ jobs:
. signtool.exe sign /f certificate\certificate.pfx /p '${{ secrets.CODE_SIGN_PASSWORD }}' /t http://timestamp.comodoca.com/authenticode "$env:bin_path\\$env:configuration\\$env:binary_file"
. signtool.exe sign /f certificate\certificate.pfx /p '${{ secrets.CODE_SIGN_PASSWORD }}' /t http://timestamp.comodoca.com/authenticode "$env:bin_path\\$env:configuration45\\$env:binary_file"
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
if: ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"

- name: Generate The Setup Script
shell: powershell
if: ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
run: |
.\.github\workflows\generate_setup_script.ps1 `
-dacpacPath "$env:bin_path\\$env:configuration\\$env:dacpac_file" `
-binaryPath "$env:bin_path\\$env:configuration\\$env:binary_file" `
-pfxPath "${{ github.workspace }}\\certificate\certificate.pfx" `
-databaseName "$env:database_name" `
-releasePath "${{ github.workspace }}\\$($env:REPO_NAME).zip"
-releasePath "${{ github.workspace }}\\$($env:REPO_NAME).${{ steps.tag_version.outputs.new_tag }}.zip"
.\.github\workflows\generate_setup_script.ps1 `
-dacpacPath "$env:bin_path\\$env:configuration45\\$env:dacpac_file" `
-binaryPath "$env:bin_path\\$env:configuration45\\$env:binary_file" `
-pfxPath "${{ github.workspace }}\\certificate\certificate.pfx" `
-databaseName "$env:database_name" `
-releasePath "${{ github.workspace }}\\$($env:REPO_NAME).zip"
-releasePath "${{ github.workspace }}\\$($env:REPO_NAME).${{ steps.tag_version.outputs.new_tag }}.zip"
# Remove the pfx
- name: Remove the pfx
shell: powershell
run: Get-ChildItem -Path "certificate\" -File | Remove-Item -Force -Verbose

- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
if: ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"

- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ github.ref == 'refs/heads/master' && env.create_release == 'true' }}
with:
artifacts: "${{ github.workspace }}\\${{ env.REPO_NAME }}.zip"
artifacts: "${{ github.workspace }}\\${{ env.REPO_NAME }}.${{ steps.tag_version.outputs.new_tag }}.zip"
token: "${{ secrets.GITHUB_TOKEN }}"
tag: "${{ steps.tag_version.outputs.new_tag }}"

0 comments on commit 01ccaea

Please sign in to comment.