Skip to content

Commit b3fd2f3

Browse files
authored
Read the current release version from a Quarto _environment file (#101)
* Read the current release version from a Quarto `_environment` file * Fix syntax error in GH action
1 parent 13b5072 commit b3fd2f3

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
workflow_dispatch:
33
push:
4-
branches: main
4+
branches: [ main ]
55

66
name: Quarto Publish
77

_environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
RELEASE_VERSION="2025.06.0-167"

_freeze/download/execute-results/html.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"hash": "ea10e0c5584cf0a62ae1395169e8e054",
2+
"hash": "59abb07494753d08a299dd32ba4988a8",
33
"result": {
44
"engine": "knitr",
5-
"markdown": "---\ntitle: \"Download Positron\"\nparams:\n version: \"2025.06.0-167\"\nformat:\n html:\n include-in-header:\n - '_download.html'\n\n---\n\n\n\n### Positron on desktop\n\nFind out what you need to know to [get started](start.qmd) using Positron, then download the desktop installer for your platform.\n\n::: callout-important\n## Accept license agreement\n\nPlease review [Positron's license agreement](licensing.qmd) and [privacy policy](https://posit.co/about/privacy-policy/). Your acceptance of this license agreement and privacy policy is required as a condition to proceeding with your download or use of the software.\n\n<div id=\"privacy-policy-agreement\">\n <input type=\"checkbox\" id=\"privacy-checkbox\" onclick=\"updatePrivacy(this)\">\n <label>I agree to the [Positron license agreement](licensing.qmd) and [Posit Privacy Policy](https://posit.co/about/privacy-policy/).</label>\n</div>\n:::\n\n\n\n\n::: {.cell .plain id='download-table'}\n::: {.cell-output-display}\n`````{=html}\n<table>\n <thead>\n <tr>\n <th style=\"text-align:left;\"> Platform </th>\n <th style=\"text-align:left;\"> Download </th>\n <th style=\"text-align:left;\"> Size </th>\n <th style=\"text-align:left;\"> SHA-256 </th>\n </tr>\n </thead>\n<tbody>\n <tr>\n <td style=\"text-align:left;\"> Windows 10, 11 x64 (system level install) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/win/x86_64/Positron-2025.06.0-167-Setup.exe\">Positron-2025.06.0-167-Setup.exe</a> </td>\n <td style=\"text-align:left;\"> 312M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('c42fe045ea859d5d58f36c5961da1c993683f36966c276558a0540e04609df80', this)\" title=\"Click to copy full checksum\">c42fe04</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Windows 10, 11 x64 (user level install) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/win/x86_64/Positron-2025.06.0-167-UserSetup.exe\">Positron-2025.06.0-167-UserSetup.exe</a> </td>\n <td style=\"text-align:left;\"> 312M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('251c751e03db66e50bc6a1e7a359317256861fbdaca8a89996c117b8cc4492fc', this)\" title=\"Click to copy full checksum\">251c751</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> MacOS 10.15+ (universal) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/mac/universal/Positron-2025.06.0-167.dmg\">Positron-2025.06.0-167.dmg</a> </td>\n <td style=\"text-align:left;\"> 773M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('813178aba2feec6581a78d11b52cb2830d031c3729e3735cf67a567122a1f1a5', this)\" title=\"Click to copy full checksum\">813178a</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Debian-based Linux x64 (Ubuntu 20+) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/deb/x86_64/Positron-2025.06.0-167-x64.deb\">Positron-2025.06.0-167-x64.deb</a> </td>\n <td style=\"text-align:left;\"> 310M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('dae301bcd545f74108f9f4db614863d6b3e4c8dc5fe658d2d2d47b48261eba2f', this)\" title=\"Click to copy full checksum\">dae301b</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Debian-based Linux arm64 (Ubuntu 20+) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/deb/arm64/Positron-2025.06.0-167-arm64.deb\">Positron-2025.06.0-167-arm64.deb</a> </td>\n <td style=\"text-align:left;\"> 304M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('ab105ce82e31c21d799d021e9a443d3cd2526e18b3f3ab18f4adcf219b0f2b12', this)\" title=\"Click to copy full checksum\">ab105ce</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Red Hat-based Linux x64 (RHEL9) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/rpm/x86_64/Positron-2025.06.0-167-x64.rpm\">Positron-2025.06.0-167-x64.rpm</a> </td>\n <td style=\"text-align:left;\"> 349M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('74828bc6fd762f3e9d55bf21abfc1a0a9c99cbdfc743e61d1e0ade640fc25550', this)\" title=\"Click to copy full checksum\">74828bc</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Red Hat-based Linux arm64 (RHEL9) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/rpm/arm64/Positron-2025.06.0-167-arm64.rpm\">Positron-2025.06.0-167-arm64.rpm</a> </td>\n <td style=\"text-align:left;\"> 344M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('c6395724849994e0ad670fec7ef706a621884c875359656d48856ec5203eaf6e', this)\" title=\"Click to copy full checksum\">c639572</span> </td>\n </tr>\n</tbody>\n</table>\n\n`````\n:::\n:::\n\n\n<br>\n\nOnce you install Positron, it will [automatically check for updates moving forward](updating.qmd). Older releases [are available on GitHub](https://github.com/posit-dev/positron/releases).\n\n### Positron Pro on Posit Workbench\n\n[Posit Workbench](https://posit.co/products/enterprise/workbench/) 2024.12.1 and later includes preview support for Positron Pro. To configure and use Positron Pro on Posit Workbench, please see the [Posit Workbench Administration Guide](https://docs.posit.co/ide/server-pro/positron_sessions/) and the [Positron Pro user guide](https://docs.posit.co/ide/server-pro/user/positron/getting-started/).\n",
5+
"markdown": "---\ntitle: \"Download Positron\"\nformat:\n html:\n include-in-header:\n - '_download.html'\n\n---\n\n\n\n\n### Positron on desktop\n\nFind out what you need to know to [get started](start.qmd) using Positron, then download the desktop installer for your platform.\n\n::: callout-important\n## Accept license agreement\n\nPlease review [Positron's license agreement](licensing.qmd) and [privacy policy](https://posit.co/about/privacy-policy/). Your acceptance of this license agreement and privacy policy is required as a condition to proceeding with your download or use of the software.\n\n<div id=\"privacy-policy-agreement\">\n <input type=\"checkbox\" id=\"privacy-checkbox\" onclick=\"updatePrivacy(this)\">\n <label>I agree to the [Positron license agreement](licensing.qmd) and [Posit Privacy Policy](https://posit.co/about/privacy-policy/).</label>\n</div>\n:::\n\n\n\n\n\n::: {.cell .plain id='download-table'}\n::: {.cell-output-display}\n`````{=html}\n<table>\n <thead>\n <tr>\n <th style=\"text-align:left;\"> Platform </th>\n <th style=\"text-align:left;\"> Download </th>\n <th style=\"text-align:left;\"> Size </th>\n <th style=\"text-align:left;\"> SHA-256 </th>\n </tr>\n </thead>\n<tbody>\n <tr>\n <td style=\"text-align:left;\"> Windows 10, 11 x64 (system level install) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/win/x86_64/Positron-2025.06.0-167-Setup.exe\">Positron-2025.06.0-167-Setup.exe</a> </td>\n <td style=\"text-align:left;\"> 312M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('c42fe045ea859d5d58f36c5961da1c993683f36966c276558a0540e04609df80', this)\" title=\"Click to copy full checksum\">c42fe04</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Windows 10, 11 x64 (user level install) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/win/x86_64/Positron-2025.06.0-167-UserSetup.exe\">Positron-2025.06.0-167-UserSetup.exe</a> </td>\n <td style=\"text-align:left;\"> 312M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('251c751e03db66e50bc6a1e7a359317256861fbdaca8a89996c117b8cc4492fc', this)\" title=\"Click to copy full checksum\">251c751</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> MacOS 10.15+ (universal) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/mac/universal/Positron-2025.06.0-167.dmg\">Positron-2025.06.0-167.dmg</a> </td>\n <td style=\"text-align:left;\"> 773M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('813178aba2feec6581a78d11b52cb2830d031c3729e3735cf67a567122a1f1a5', this)\" title=\"Click to copy full checksum\">813178a</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Debian-based Linux x64 (Ubuntu 20+) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/deb/x86_64/Positron-2025.06.0-167-x64.deb\">Positron-2025.06.0-167-x64.deb</a> </td>\n <td style=\"text-align:left;\"> 310M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('dae301bcd545f74108f9f4db614863d6b3e4c8dc5fe658d2d2d47b48261eba2f', this)\" title=\"Click to copy full checksum\">dae301b</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Debian-based Linux arm64 (Ubuntu 20+) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/deb/arm64/Positron-2025.06.0-167-arm64.deb\">Positron-2025.06.0-167-arm64.deb</a> </td>\n <td style=\"text-align:left;\"> 304M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('ab105ce82e31c21d799d021e9a443d3cd2526e18b3f3ab18f4adcf219b0f2b12', this)\" title=\"Click to copy full checksum\">ab105ce</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Red Hat-based Linux x64 (RHEL9) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/rpm/x86_64/Positron-2025.06.0-167-x64.rpm\">Positron-2025.06.0-167-x64.rpm</a> </td>\n <td style=\"text-align:left;\"> 349M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('74828bc6fd762f3e9d55bf21abfc1a0a9c99cbdfc743e61d1e0ade640fc25550', this)\" title=\"Click to copy full checksum\">74828bc</span> </td>\n </tr>\n <tr>\n <td style=\"text-align:left;\"> Red Hat-based Linux arm64 (RHEL9) </td>\n <td style=\"text-align:left;\"> <a href=\"https://cdn.posit.co/positron/prereleases/rpm/arm64/Positron-2025.06.0-167-arm64.rpm\">Positron-2025.06.0-167-arm64.rpm</a> </td>\n <td style=\"text-align:left;\"> 344M </td>\n <td style=\"text-align:left;\"> <span class=\"checksum\" onclick=\"copyChecksum('c6395724849994e0ad670fec7ef706a621884c875359656d48856ec5203eaf6e', this)\" title=\"Click to copy full checksum\">c639572</span> </td>\n </tr>\n</tbody>\n</table>\n\n`````\n:::\n:::\n\n\n\n<br>\n\nOnce you install Positron, it will [automatically check for updates moving forward](updating.qmd). Older releases [are available on GitHub](https://github.com/posit-dev/positron/releases).\n\n### Positron Pro on Posit Workbench\n\n[Posit Workbench](https://posit.co/products/enterprise/workbench/) 2024.12.1 and later includes preview support for Positron Pro. To configure and use Positron Pro on Posit Workbench, please see the [Posit Workbench Administration Guide](https://docs.posit.co/ide/server-pro/positron_sessions/) and the [Positron Pro user guide](https://docs.posit.co/ide/server-pro/user/positron/getting-started/).\n",
66
"supporting": [],
77
"filters": [
88
"rmarkdown/pagebreak.lua"

download.qmd

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
title: "Download Positron"
3-
params:
4-
version: "2025.06.0-167"
53
format:
64
html:
75
include-in-header:
@@ -35,15 +33,18 @@ library(glue)
3533
library(httr)
3634
library(jsonlite)
3735
36+
# Read release version from _environment
37+
release_version <- Sys.getenv("RELEASE_VERSION")
38+
3839
# Create URLs
3940
cdn_url <- "https://cdn.posit.co/positron/prereleases/"
40-
windows_system <- glue("Positron-{params$version}-Setup.exe")
41-
windows_user <- glue("Positron-{params$version}-UserSetup.exe")
42-
macos_universal <- glue("Positron-{params$version}.dmg")
43-
debian_x64 <- glue("Positron-{params$version}-x64.deb")
44-
debian_arm <- glue("Positron-{params$version}-arm64.deb")
45-
redhat_x64 <- glue("Positron-{params$version}-x64.rpm")
46-
redhat_arm <- glue("Positron-{params$version}-arm64.rpm")
41+
windows_system <- glue("Positron-{release_version}-Setup.exe")
42+
windows_user <- glue("Positron-{release_version}-UserSetup.exe")
43+
macos_universal <- glue("Positron-{release_version}.dmg")
44+
debian_x64 <- glue("Positron-{release_version}-x64.deb")
45+
debian_arm <- glue("Positron-{release_version}-arm64.deb")
46+
redhat_x64 <- glue("Positron-{release_version}-x64.rpm")
47+
redhat_arm <- glue("Positron-{release_version}-arm64.rpm")
4748
urls <- list(
4849
glue("{cdn_url}win/x86_64/{windows_system}"),
4950
glue("{cdn_url}win/x86_64/{windows_user}"),
@@ -56,7 +57,7 @@ urls <- list(
5657
5758
# Get checksums
5859
checksum_data <- rlang::try_fetch(
59-
fromJSON(glue("{cdn_url}checksums/positron-{params$version}-checksums.json")),
60+
fromJSON(glue("{cdn_url}checksums/positron-{release_version}-checksums.json")),
6061
error = function(cnd) list(),
6162
warning = function(cnd) list()
6263
)

0 commit comments

Comments
 (0)