8000 Fix windows version update workflow step by hakanshehu · Pull Request #51 · colanode/colanode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix windows version update workflow step #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/desktop-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ jobs:
echo "VERSION=$version" >> $env:GITHUB_ENV

- name: Set version and commit SHA into build.ts
shell: pwsh
run: |
cat <<EOF > ./packages/core/src/types/build.ts
$content = @'

// This file is auto-generated during CI/CD
const VERSION = "${{ env.VERSION }}";
const SHA = "${{ github.sha }}";
Expand All @@ -48,7 +50,9 @@ jobs:
version: VERSION,
sha: SHA
};
EOF

'@
Set-Content -Path "./packages/core/src/types/build.ts" -Value $content

- name: Decode certificate
run: |
Expand Down Expand Up @@ -113,6 +117,19 @@ jobs:
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Set version and commit SHA into build.ts
run: |
cat <<EOF > ./packages/core/src/types/build.ts
// This file is auto-generated during CI/CD
const VERSION = "${{ env.VERSION }}";
const SHA = "${{ github.sha }}";

export const build = {
version: VERSION,
sha: SHA
};
EOF

- name: Decode and Import macOS Certificate
run: |
# Decode the base64 encoded certificate
Expand Down
0