-
-
Notifications
You must be signed in to change notification settings - Fork 23
54 lines (40 loc) · 1.32 KB
/
makefile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Makefile CI
on:
push:
tags: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install npm dependencies
run: npm install
- name: Check code with eslint
run: |
export PATH="$PATH:$GITHUB_WORKSPACE/node_modules/.bin"
make eslint
- name: APT update
run: sudo apt-get update
- name: Install intltool and gettext
run: sudo apt-get install -y intltool gettext
- name: Install libglib2.0-dev
run: sudo apt-get install -y libglib2.0-dev
- name: Install gnome-shell
run: sudo apt-get install -y gnome-shell --no-install-recommends
- name: Generate extension zip
run: make build
- name: Generate extension pot
run: make potfile
- name: Get release informations
run: |
echo "release_subject=$(git tag -l --format='%(contents:subject)' ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV
git tag -l --format='%(contents:body)' ${GITHUB_REF/refs\/tags\//} > releaseBody.md
- name: Release
uses: ncipollo/release-action@v1
id: create_release
with:
artifacts: "nasa_apod@elinvention.ovh.zip,nasa_apod@elinvention.ovh.pot"
draft: false
prerelease: false
name: ${{ env.release_subject }}
bodyFile: releaseBody.md