stable-linux.yml 18 KB

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