stable-linux.yml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  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@v4
  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@v4
  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@v4
  94. with:
  95. node-version: '20.19.0'
  96. if: env.SHOULD_BUILD == 'yes'
  97. - name: Setup Python 3
  98. uses: actions/setup-python@v5
  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@v4
  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:beige-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@v4
  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: ./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@v4
  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@v4
  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@v4
  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@v4
  296. with:
  297. node-version: '20.19.0'
  298. if: env.DISABLED != 'yes'
  299. - name: Setup Python 3
  300. uses: actions/setup-python@v5
  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: ./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@v4
  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@v4
  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@v4
  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: Install GH
  380. run: ./install_gh.sh
  381. if: env.SHOULD_DEPLOY == 'yes'
  382. - name: Check existing VSCodium tags/releases
  383. env:
  384. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  385. CHECK_ONLY_REH: 'yes'
  386. run: ./check_tags.sh
  387. - name: Install libkrb5-dev
  388. run: sudo apt-get update -y && sudo apt-get install -y libkrb5-dev
  389. if: env.SHOULD_BUILD == 'yes'
  390. - name: Download vscode artifact
  391. uses: actions/download-artifact@v4
  392. with:
  393. name: vscode
  394. if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
  395. - name: Build
  396. env:
  397. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  398. npm_config_arch: ${{ matrix.npm_arch }}
  399. run: ./build/alpine/package_reh.sh
  400. if: env.DISABLED != 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no' || github.event.inputs.generate_assets == 'true')
  401. - name: Release
  402. env:
  403. GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  404. GITHUB_USERNAME: ${{ github.repository_owner }}
  405. run: ./release.sh
  406. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'yes' && (env.SHOULD_BUILD_REH != 'no' || env.SHOULD_BUILD_REH_WEB != 'no')
  407. - name: Upload assets
  408. uses: actions/upload-artifact@v4
  409. with:
  410. name: reh-alpine-${{ matrix.vscode_arch }}
  411. path: assets/
  412. retention-days: 3
  413. if: env.DISABLED != 'yes' && env.SHOULD_DEPLOY == 'no' && github.event.inputs.generate_assets == 'true'
  414. aur:
  415. needs:
  416. - check
  417. - build
  418. runs-on: ubuntu-latest
  419. strategy:
  420. fail-fast: false
  421. matrix:
  422. include:
  423. - package_name: vscodium
  424. package_type: stable
  425. # - package_name: vscodium-git
  426. # package_type: rolling
  427. if: needs.check.outputs.SHOULD_DEPLOY == 'yes'
  428. steps:
  429. - name: Publish ${{ matrix.package_name }}
  430. uses: zokugun/github-actions-aur-releaser@v1
  431. with:
  432. package_name: ${{ matrix.package_name }}
  433. package_type: ${{ matrix.package_type }}
  434. aur_private_key: ${{ secrets.AUR_PRIVATE_KEY }}
  435. aur_username: ${{ secrets.AUR_USERNAME }}
  436. aur_email: ${{ secrets.AUR_EMAIL }}
  437. snap:
  438. needs:
  439. - check
  440. - build
  441. runs-on: ubuntu-latest
  442. env:
  443. RELEASE_VERSION: ${{ needs.check.outputs.RELEASE_VERSION }}
  444. SNAP_NAME: codium
  445. strategy:
  446. fail-fast: false
  447. matrix:
  448. platform:
  449. - amd64
  450. - arm64
  451. if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && needs.check.outputs.SHOULD_BUILD_SNAP != 'no' && vars.DISABLE_STABLE_SNAP != 'yes'
  452. steps:
  453. - uses: actions/checkout@v4
  454. with:
  455. ref: ${{ env.GITHUB_BRANCH }}
  456. - name: Switch to relevant branch
  457. env:
  458. PULL_REQUEST_ID: ${{ github.event.inputs.checkout_pr }}
  459. run: ./get_pr.sh
  460. - name: Check version
  461. env:
  462. ARCHITECTURE: ${{ matrix.platform }}
  463. GENERATE_ASSETS: ${{ github.event.inputs.generate_assets }}
  464. SNAPCRAFT_STORE_CHANNEL: ${{ vars.SNAP_STORE_CHANNEL }}
  465. SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
  466. run: ./stores/snapcraft/check_version.sh
  467. - uses: docker/setup-qemu-action@v3
  468. if: env.SHOULD_BUILD == 'yes'
  469. - uses: diddlesnaps/snapcraft-multiarch-action@v1
  470. with:
  471. path: stores/snapcraft/stable
  472. architecture: ${{ matrix.platform }}
  473. id: build
  474. if: env.SHOULD_BUILD == 'yes'
  475. - uses: diddlesnaps/snapcraft-review-action@v1
  476. with:
  477. snap: ${{ steps.build.outputs.snap }}
  478. isClassic: 'true'
  479. if: env.SHOULD_DEPLOY_TO_RELEASE == 'yes' || env.SHOULD_DEPLOY_TO_STORE == 'yes'
  480. - uses: svenstaro/upload-release-action@v2
  481. with:
  482. repo_name: ${{ env.ASSETS_REPOSITORY }}
  483. repo_token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  484. file: ${{ steps.build.outputs.snap }}
  485. tag: ${{ env.RELEASE_VERSION }}
  486. if: env.SHOULD_DEPLOY_TO_RELEASE == 'yes'
  487. - uses: snapcore/action-publish@master
  488. env:
  489. SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
  490. with:
  491. snap: ${{ steps.build.outputs.snap }}
  492. release: ${{ vars.SNAP_STORE_CHANNEL }}
  493. if: env.SHOULD_DEPLOY_TO_STORE == 'yes'
  494. deploy-repo-rudy:
  495. needs:
  496. - check
  497. - build
  498. runs-on: ubuntu-latest
  499. if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && github.event.inputs.generate_assets != 'true'
  500. steps:
  501. - name: Trigger repository rebuild
  502. env:
  503. GL_PAGES_TOKEN: ${{ secrets.GL_PAGES_TOKEN }}
  504. run: curl -X POST --fail -F token="${GL_PAGES_TOKEN}" -F ref=master https://gitlab.com/api/v4/projects/8762263/trigger/pipeline
  505. deploy-repo-dev:
  506. needs:
  507. - check
  508. - build
  509. runs-on: ubuntu-latest
  510. if: needs.check.outputs.SHOULD_DEPLOY == 'yes' && github.event.inputs.generate_assets != 'true'
  511. steps:
  512. - name: Trigger repository rebuild
  513. uses: peter-evans/repository-dispatch@v3
  514. with:
  515. token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
  516. repository: VSCodium/repositories-linux
  517. event-type: deploy