stable-linux.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. name: stable-linux
  2. on:
  3. workflow_dispatch:
  4. inputs:
  5. force_version:
  6. type: boolean
  7. description: Force update version
  8. generate_assets:
  9. type: boolean
  10. description: Generate assets
  11. checkout_pr:
  12. type: string
  13. description: Checkout PR
  14. repository_dispatch:
  15. types: [stable]
  16. push:
  17. branches: [ master ]
  18. paths-ignore:
  19. - '**/*.md'
  20. - 'upstream/*.json'
  21. pull_request:
  22. branches: [ master ]
  23. paths-ignore:
  24. - '**/*.md'
  25. env:
  26. ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
  27. APP_NAME: VSCodium
  28. ASSETS_REPOSITORY: ${{ github.repository }}
  29. BINARY_NAME: codium
  30. DISABLE_UPDATE: 'yes'
  31. GH_REPO_PATH: ${{ github.repository }}
  32. ORG_NAME: ${{ github.repository_owner }}
  33. OS_NAME: linux
  34. VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
  35. VSCODE_QUALITY: stable
  36. jobs:
  37. check:
  38. runs-on: ubuntu-latest
  39. outputs:
  40. MS_COMMIT: ${{ env.MS_COMMIT }}
  41. MS_TAG: ${{ env.MS_TAG }}
  42. RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
  43. SHOULD_BUILD: ${{ env.SHOULD_BUILD }}
  44. SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}
  45. steps:
  46. - uses: actions/checkout@v6
  47. with:
  48. ref: ${{ env.GITHUB_BRANCH }}
  49. - name: Switch to relevant branch
  50. env:
  51. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  52. run: ./get_pr.sh
  53. - name: Clone VSCode repo
  54. run: ./get_repo.sh
  55. - name: Check PR or cron
  56. env:
  57. GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
  58. run: ./check_cron_or_pr.sh
  59. - name: Check existing VSCodium tags/releases
  60. env:
  61. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  62. CHECK_ALL: 'yes'
  63. run: ./check_tags.sh
  64. compile:
  65. needs:
  66. - check
  67. runs-on: ubuntu-22.04
  68. env:
  69. MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
  70. MS_TAG: ${{ needs.check.outputs.MS_TAG }}
  71. RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
  72. SHOULD_BUILD: ${{ (needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true') && 'yes' || 'no' }}
  73. VSCODE_ARCH: 'x64'
  74. outputs:
  75. BUILD_SOURCEVERSION: ${{ env.BUILD_SOURCEVERSION }}
  76. steps:
  77. - uses: actions/checkout@v6
  78. with:
  79. ref: ${{ env.GITHUB_BRANCH }}
  80. if: env.SHOULD_BUILD == 'yes'
  81. - name: Switch to relevant branch
  82. env:
  83. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  84. run: ./get_pr.sh
  85. if: env.SHOULD_BUILD == 'yes'
  86. - name: Setup GCC
  87. uses: egor-tensin/setup-gcc@v1
  88. with:
  89. version: 10
  90. platform: x64
  91. if: env.SHOULD_BUILD == 'yes'
  92. - name: Setup Node.js environment
  93. uses: actions/setup-node@v6
  94. with:
  95. node-version-file: '.nvmrc'
  96. if: env.SHOULD_BUILD == 'yes'
  97. - name: Setup Python 3
  98. uses: actions/setup-python@v6
  99. with:
  100. python-version: '3.11'
  101. if: env.SHOULD_BUILD == 'yes'
  102. - name: Install libkrb5-dev
  103. run: sudo apt-get update -y && sudo apt-get install -y libkrb5-dev
  104. if: env.SHOULD_BUILD == 'yes'
  105. - name: Clone VSCode repo
  106. run: ./get_repo.sh
  107. if: env.SHOULD_BUILD == 'yes'
  108. - name: Build
  109. env:
  110. SHOULD_BUILD_REH: 'no'
  111. SHOULD_BUILD_REH_WEB: 'no'
  112. run: ./build.sh
  113. if: env.SHOULD_BUILD == 'yes'
  114. - name: Compress vscode artifact
  115. run: |
  116. find vscode -type f -not -path "*/node_modules/*" -not -path "vscode/.build/node/*" -not -path "vscode/.git/*" > vscode.txt
  117. echo "vscode/.build/extensions/node_modules" >> vscode.txt
  118. echo "vscode/.git" >> vscode.txt
  119. tar -czf vscode.tar.gz -T vscode.txt
  120. if: env.SHOULD_BUILD == 'yes'
  121. - name: Upload vscode artifact
  122. uses: actions/upload-artifact@v5
  123. with:
  124. name: vscode
  125. path: ./vscode.tar.gz
  126. retention-days: ${{ needs.check.outputs.SHOULD_DEPLOY == 'yes' && 30 || 1 }}
  127. if: env.SHOULD_BUILD == 'yes'
  128. build:
  129. needs:
  130. - check
  131. - compile
  132. runs-on: ubuntu-latest
  133. strategy:
  134. fail-fast: false
  135. matrix:
  136. include:
  137. - slug: X64
  138. vscode_arch: x64
  139. npm_arch: x64
  140. image: vscodium/vscodium-linux-build-agent:focal-x64
  141. - slug: ARM64
  142. vscode_arch: arm64
  143. npm_arch: arm64
  144. image: vscodium/vscodium-linux-build-agent:focal-arm64
  145. - slug: ARM32
  146. vscode_arch: armhf
  147. npm_arch: arm
  148. image: vscodium/vscodium-linux-build-agent:focal-armhf
  149. - slug: RISCV64
  150. vscode_arch: riscv64
  151. npm_arch: riscv64
  152. image: vscodium/vscodium-linux-build-agent:focal-riscv64
  153. - slug: LOONG64
  154. vscode_arch: loong64
  155. npm_arch: loong64
  156. image: vscodium/vscodium-linux-build-agent:crimson-loong64
  157. - slug: PPC64
  158. vscode_arch: ppc64le
  159. npm_arch: ppc64
  160. image: vscodium/vscodium-linux-build-agent:focal-ppc64le
  161. container:
  162. image: ${{ matrix.image }}
  163. env:
  164. BUILD_SOURCEVERSION: ${{ needs.compile.outputs.BUILD_SOURCEVERSION }}
  165. DISABLED: ${{ vars[format('DISABLE_STABLE_LINUX_APP_{0}', matrix.slug)] }}
  166. MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
  167. MS_TAG: ${{ needs.check.outputs.MS_TAG }}
  168. RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
  169. SHOULD_BUILD: ${{ (needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true') && 'yes' || 'no' }}
  170. SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
  171. VSCODE_ARCH: ${{ matrix.vscode_arch }}
  172. outputs:
  173. RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
  174. SHOULD_BUILD: ${{ env.SHOULD_BUILD }}
  175. SHOULD_DEPLOY: ${{ env.SHOULD_DEPLOY }}
  176. steps:
  177. - uses: actions/checkout@v6
  178. with:
  179. ref: ${{ env.GITHUB_BRANCH }}
  180. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes'
  181. - name: Switch to relevant branch
  182. env:
  183. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  184. run: ./get_pr.sh
  185. if: env.DISABLED != 'yes'
  186. - name: Install GH
  187. run: ./build/linux/install_gh.sh
  188. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
  189. - name: Check existing VSCodium tags/releases
  190. env:
  191. CHECK_REH: 'no'
  192. DISABLE_APPIMAGE: ${{ vars.DISABLE_STABLE_APPIMAGE }}
  193. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  194. run: ./check_tags.sh
  195. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes'
  196. - name: Install dependencies
  197. run: ./build/linux/deps.sh
  198. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes'
  199. - uses: actions-rust-lang/setup-rust-toolchain@v1
  200. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes'
  201. - name: Download vscode artifact
  202. uses: actions/download-artifact@v6
  203. with:
  204. name: vscode
  205. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes'
  206. - name: Build
  207. env:
  208. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  209. npm_config_arch: ${{ matrix.npm_arch }}
  210. run: ./build/linux/package_bin.sh
  211. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes'
  212. - name: Prepare assets
  213. env:
  214. SHOULD_BUILD_REH: 'no'
  215. SHOULD_BUILD_REH_WEB: 'no'
  216. run: ./prepare_assets.sh
  217. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes' && (env.SHOULD_DEPLOY == 'yes' || github.event.inputs.generate_assets == 'true')
  218. - name: Release
  219. env:
  220. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  221. GITHUB_USERNAME: ${{ github.repository_owner }}
  222. run: ./release.sh
  223. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
  224. - name: Update versions repo
  225. env:
  226. FORCE_UPDATE: ${{ github.event.inputs.force_version }}
  227. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  228. GITHUB_USERNAME: ${{ github.repository_owner }}
  229. run: ./update_version.sh
  230. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'yes'
  231. - name: Upload assets
  232. uses: actions/upload-artifact@v5
  233. with:
  234. name: bin-${{ matrix.vscode_arch }}
  235. path: assets/
  236. retention-days: 3
  237. if: env.DISABLED != 'yes' && env.SHOULD_BUILD == 'yes' && env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true'
  238. reh_linux:
  239. needs:
  240. - check
  241. - compile
  242. runs-on: ubuntu-22.04
  243. strategy:
  244. fail-fast: false
  245. matrix:
  246. include:
  247. - slug: X64
  248. vscode_arch: x64
  249. npm_arch: x64
  250. - slug: ARM64
  251. vscode_arch: arm64
  252. npm_arch: arm64
  253. - slug: ARM32
  254. vscode_arch: armhf
  255. npm_arch: arm
  256. - slug: PPC64
  257. vscode_arch: ppc64le
  258. npm_arch: ppc64
  259. - slug: RISCV64
  260. vscode_arch: riscv64
  261. npm_arch: riscv64
  262. - slug: LOONG64
  263. vscode_arch: loong64
  264. npm_arch: loong64
  265. - slug: S390X
  266. vscode_arch: s390x
  267. npm_arch: s390x
  268. env:
  269. BUILD_SOURCEVERSION: ${{ needs.compile.outputs.BUILD_SOURCEVERSION }}
  270. DISABLED: ${{ vars[format('DISABLE_STABLE_LINUX_REH_{0}', matrix.slug)] }}
  271. MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
  272. MS_TAG: ${{ needs.check.outputs.MS_TAG }}
  273. RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
  274. SHOULD_BUILD: ${{ needs.check.outputs.SHOULD_BUILD }}
  275. SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
  276. VSCODE_ARCH: ${{ matrix.vscode_arch }}
  277. if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true'
  278. steps:
  279. - uses: actions/checkout@v6
  280. with:
  281. ref: ${{ env.GITHUB_BRANCH }}
  282. if: env.DISABLED != 'yes'
  283. - name: Switch to relevant branch
  284. env:
  285. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  286. run: ./get_pr.sh
  287. if: env.DISABLED != 'yes'
  288. - name: Setup GCC
  289. uses: egor-tensin/setup-gcc@v1
  290. with:
  291. version: 10
  292. platform: x64
  293. if: env.DISABLED != 'yes'
  294. - name: Setup Node.js environment
  295. uses: actions/setup-node@v6
  296. with:
  297. node-version-file: '.nvmrc'
  298. if: env.DISABLED != 'yes'
  299. - name: Setup Python 3
  300. uses: actions/setup-python@v6
  301. with:
  302. python-version: '3.11'
  303. if: env.DISABLED != 'yes'
  304. - name: Install libkrb5-dev
  305. run: sudo apt-get update -y && sudo apt-get install -y libkrb5-dev
  306. if: env.DISABLED != 'yes'
  307. - name: Install GH
  308. run: ./build/linux/install_gh.sh
  309. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'yes'
  310. - name: Check existing VSCodium tags/releases
  311. env:
  312. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  313. CHECK_ONLY_REH: 'yes'
  314. run: ./check_tags.sh
  315. if: env.DISABLED != 'yes'
  316. - name: Download vscode artifact
  317. uses: actions/download-artifact@v6
  318. with:
  319. name: vscode
  320. if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
  321. - name: Build
  322. env:
  323. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  324. npm_config_arch: ${{ matrix.npm_arch }}
  325. run: ./build/linux/package_reh.sh
  326. if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
  327. - name: Release
  328. env:
  329. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  330. GITHUB_USERNAME: ${{ github.repository_owner }}
  331. run: ./release.sh
  332. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no')
  333. - name: Upload assets
  334. uses: actions/upload-artifact@v5
  335. with:
  336. name: reh-linux-${{ matrix.vscode_arch }}
  337. path: assets/
  338. retention-days: 3
  339. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true'
  340. reh_alpine:
  341. needs:
  342. - check
  343. - compile
  344. runs-on: ubuntu-22.04
  345. strategy:
  346. fail-fast: false
  347. matrix:
  348. include:
  349. - slug: X64
  350. vscode_arch: x64
  351. npm_arch: x64
  352. - slug: ARM64
  353. vscode_arch: arm64
  354. npm_arch: arm64
  355. env:
  356. BUILD_SOURCEVERSION: ${{ needs.compile.outputs.BUILD_SOURCEVERSION }}
  357. DISABLED: ${{ vars[format('DISABLE_STABLE_ALPINE_REH_{0}', matrix.slug)] }}
  358. MS_COMMIT: ${{ needs.check.outputs.MS_COMMIT }}
  359. MS_TAG: ${{ needs.check.outputs.MS_TAG }}
  360. OS_NAME: alpine
  361. RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
  362. SHOULD_BUILD: ${{ needs.check.outputs.SHOULD_BUILD }}
  363. SHOULD_DEPLOY: ${{ needs.check.outputs.SHOULD_DEPLOY }}
  364. VSCODE_ARCH: ${{ matrix.vscode_arch }}
  365. if: needs.check.outputs.SHOULD_BUILD == 'yes' || github.event.inputs.generate_assets == 'true'
  366. steps:
  367. - uses: actions/checkout@v6
  368. with:
  369. ref: ${{ env.GITHUB_BRANCH }}
  370. - name: Switch to relevant branch
  371. env:
  372. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  373. run: ./get_pr.sh
  374. - name: Setup GCC
  375. uses: egor-tensin/setup-gcc@v1
  376. with:
  377. version: 10
  378. platform: x64
  379. - name: Setup Node.js environment
  380. uses: actions/setup-node@v6
  381. with:
  382. node-version-file: '.nvmrc'
  383. - name: Install GH
  384. run: ./build/linux/install_gh.sh
  385. if: env.SHOULD_DEPLOY == 'yes'
  386. - name: Check existing VSCodium tags/releases
  387. env:
  388. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  389. CHECK_ONLY_REH: 'yes'
  390. run: ./check_tags.sh
  391. - name: Install libkrb5-dev
  392. run: sudo apt-get update -y && sudo apt-get install -y libkrb5-dev
  393. if: env.SHOULD_BUILD == 'yes'
  394. - name: Download vscode artifact
  395. uses: actions/download-artifact@v6
  396. with:
  397. name: vscode
  398. if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
  399. - name: Build
  400. env:
  401. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  402. npm_config_arch: ${{ matrix.npm_arch }}
  403. run: ./build/alpine/package_reh.sh
  404. if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
  405. - name: Release
  406. env:
  407. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  408. GITHUB_USERNAME: ${{ github.repository_owner }}
  409. run: ./release.sh
  410. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no')
  411. - name: Upload assets
  412. uses: actions/upload-artifact@v5
  413. with:
  414. name: reh-alpine-${{ matrix.vscode_arch }}
  415. path: assets/
  416. retention-days: 3
  417. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true'
  418. aur:
  419. needs:
  420. - check
  421. - build
  422. runs-on: ubuntu-latest
  423. strategy:
  424. fail-fast: false
  425. matrix:
  426. include:
  427. - package_name: vscodium
  428. package_type: stable
  429. # - package_name: vscodium-git
  430. # package_type: rolling
  431. if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
  432. steps:
  433. - name: Publish ${{ matrix.package_name }}
  434. uses: zokugun/github-actions-aur-releaser@v1
  435. with:
  436. package_name: ${{ matrix.package_name }}
  437. package_type: ${{ matrix.package_type }}
  438. aur_private_key: ${{ secrets.AUR_PRIVATE_KEY }}
  439. aur_username: ${{ secrets.AUR_USERNAME }}
  440. aur_email: ${{ secrets.AUR_EMAIL }}
  441. snap:
  442. needs:
  443. - check
  444. - build
  445. runs-on: ubuntu-latest
  446. env:
  447. RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
  448. SNAP_NAME: codium
  449. strategy:
  450. fail-fast: false
  451. matrix:
  452. platform:
  453. - amd64
  454. - arm64
  455. if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && needs.check.outputs.SHOULD_BUILD_SNAP != 'no' && vars.DISABLE_STABLE_SNAP != 'yes'
  456. steps:
  457. - uses: actions/checkout@v6
  458. with:
  459. ref: ${{ env.GITHUB_BRANCH }}
  460. - name: Switch to relevant branch
  461. env:
  462. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  463. run: ./get_pr.sh
  464. - name: Check version
  465. env:
  466. ARCHITECTURE: ${{ matrix.platform }}
  467. GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
  468. SNAPCRAFT_STORE_CHANNEL: ${{ vars.SNAP_STORE_CHANNEL }}
  469. SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
  470. run: ./stores/snapcraft/check_version.sh
  471. - uses: docker/setup-qemu-action@v3
  472. if: env.SHOULD_BUILD == 'yes'
  473. - uses: diddlesnaps/snapcraft-multiarch-action@v1
  474. with:
  475. path: stores/snapcraft/stable
  476. architecture: ${{ matrix.platform }}
  477. id: build
  478. if: env.SHOULD_BUILD == 'yes'
  479. - uses: diddlesnaps/snapcraft-review-action@v1
  480. with:
  481. snap: ${{ steps.build.outputs.snap }}
  482. isClassic: 'true'
  483. if: env.SHOULD_DEPLOY_TO_RELEASE == 'yes' || env.SHOULD_DEPLOY_TO_STORE == 'yes'
  484. - uses: svenstaro/upload-release-action@v2
  485. with:
  486. repo_name: ${{ env.ASSETS_REPOSITORY }}
  487. repo_token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  488. file: ${{ steps.build.outputs.snap }}
  489. tag: ${{ env.RELEASE_VERSION }}
  490. if: env.SHOULD_DEPLOY_TO_RELEASE == 'yes'
  491. - uses: snapcore/action-publish@master
  492. env:
  493. SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
  494. with:
  495. snap: ${{ steps.build.outputs.snap }}
  496. release: ${{ vars.SNAP_STORE_CHANNEL }}
  497. if: env.SHOULD_DEPLOY_TO_STORE == 'yes'
  498. deploy-repo-rudy:
  499. needs:
  500. - check
  501. - build
  502. runs-on: ubuntu-latest
  503. if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && github.event.inputs.generate_assets != 'true'
  504. steps:
  505. - name: Trigger repository rebuild
  506. env:
  507. GL_PAGES_TOKEN: ${{ secrets.GL_PAGES_TOKEN }}
  508. run: curl -X POST --fail -F token="${GL_PAGES_TOKEN}" -F ref=master https://gitlab.com/api/v4/projects/8762263/trigger/pipeline
  509. deploy-repo-dev:
  510. needs:
  511. - check
  512. - build
  513. runs-on: ubuntu-latest
  514. if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && github.event.inputs.generate_assets != 'true'
  515. steps:
  516. - name: Trigger repository rebuild
  517. uses: peter-evans/repository-dispatch@v4
  518. with:
  519. token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  520. repository: VSCodium/repositories-linux
  521. event-type: deploy