Skip to content

Update actions/checkout action to v4 #480

Update actions/checkout action to v4

Update actions/checkout action to v4 #480

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- 'master'
env:
VERSION: 1.3.${{ github.run_number }}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Update Version
run: |
((Get-Content -Path Source\Editor\Properties\AssemblyInfo.cs -Raw) -Replace "1.0.*", "${{ env.VERSION }}"")]") | Set-Content -Path Source\Editor\Properties\AssemblyInfo.cs
((Get-Content -Path Source\SqlCeDatabase\Properties\AssemblyInfo.cs -Raw) -Replace "1.0.*", "${{ env.VERSION }}"")]") | Set-Content -Path Source\SqlCeDatabase\Properties\AssemblyInfo.cs
((Get-Content -Path Source\SqlCeDatabase31\Properties\AssemblyInfo.cs -Raw) -Replace "1.0.*", "${{ env.VERSION }}"")]") | Set-Content -Path Source\SqlCeDatabase31\Properties\AssemblyInfo.cs
((Get-Content -Path Source\SqlCeDatabase35\Properties\AssemblyInfo.cs -Raw) -Replace "1.0.*", "${{ env.VERSION }}"")]") | Set-Content -Path Source\SqlCeDatabase35\Properties\AssemblyInfo.cs
((Get-Content -Path Source\SqlCeDatabase40\Properties\AssemblyInfo.cs -Raw) -Replace "1.0.*", "${{ env.VERSION }}"")]") | Set-Content -Path Source\SqlCeDatabase40\Properties\AssemblyInfo.cs
((Get-Content -Path Source\Setup-x86.iss -Raw) -Replace "1.0.0", "${{ env.VERSION }}") | Set-Content -Path Source\Setup-x86.iss
((Get-Content -Path Source\Setup-x64.iss -Raw) -Replace "1.0.0", "${{ env.VERSION }}") | Set-Content -Path Source\Setup-x64.iss
- name: Cake Build
run: ./build.ps1 --verbosity Diagnostic
working-directory: Source
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: Installer (x64)
path: Source/Artifacts/SQLCEQueryAnalyzer-Setup-x64.exe
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: Binaries (x64)
path: Source/Binaries/Release/x64/**/*
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: Installer (x86)
path: Source/Artifacts/SQLCEQueryAnalyzer-Setup-x86.exe
- name: Publish artifacts
uses: actions/upload-artifact@v3
with:
name: Binaries (x86)
path: Source/Binaries/Release/x86/**/*