stable-linux.yml 18 KB

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