-
-
Notifications
You must be signed in to change notification settings - Fork 23
58 lines (45 loc) · 1.46 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
55
56
57
name: Makefile CI
on:
push:
tags: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install npm dependencies
run: npm install
- name: Check code with eslint
run: |
export PATH="$PATH:$GITHUB_WORKSPACE/node_modules/.bin"
make eslint
- name: Install intltool
run: sudo apt-get install -y intltool
- name: Install libglib2.0-dev
run: sudo apt-get install -y libglib2.0-dev
- name: Generate extension zip
run: make build
- name: Get release informations
run: |
echo "subject=$(git tag -l --format='%(contents:subject)' ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV
echo "body=$(git tag -l --format='%(contents:body)' ${GITHUB_REF/refs\/tags\//})" >> $GITHUB_ENV
- name: Release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
tag_name: ${{ github.ref }}
release_name: ${{ env.release_subject }}
body: ${{ env.release_body }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload zip to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: nasa_apod@elinvention.ovh.zip
asset_name: nasa_apod@elinvention.ovh.zip
asset_content_type: application/zip