Skip to content

Commit 37b832b

Browse files
authored
ci: Refactor some stuffs and remove the main from run the CI tests and build (#54)
1 parent 04f277c commit 37b832b

2 files changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
75
merge_group:
86
workflow_call:

.github/workflows/pre-release.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,35 @@ permissions:
99

1010
concurrency:
1111
group: pre-release-main
12-
cancel-in-progress: false
12+
cancel-in-progress: true
1313

1414
jobs:
15-
ci:
16-
uses: ./.github/workflows/ci.yml
17-
1815
pre-release:
1916
name: Create daily pre-release
2017
runs-on: ubuntu-latest
21-
needs: [ci]
2218
steps:
2319
- uses: actions/checkout@v4
2420

21+
- name: Install system dependencies
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y just gettext zip gnome-shell python3-gi gir1.2-glib-2.0
25+
26+
- name: Enable Corepack
27+
run: corepack enable
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 22
33+
cache: yarn
34+
35+
- name: Install dependencies
36+
run: yarn install --immutable
37+
38+
- name: Build extension zip
39+
run: just package
40+
2541
- name: Read version metadata
2642
id: metadata
2743
run: |
@@ -35,12 +51,6 @@ jobs:
3551
echo "release_name=${RELEASE_NAME}" >> "$GITHUB_OUTPUT"
3652
echo "tag_name=v${RELEASE_NAME}" >> "$GITHUB_OUTPUT"
3753
38-
- name: Download extension zip
39-
uses: actions/download-artifact@v4
40-
with:
41-
name: extension-zip
42-
path: dist/target/
43-
4454
- name: Configure Git
4555
run: |
4656
git config user.name "github-actions[bot]"

0 commit comments

Comments
 (0)