-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (66 loc) · 2.02 KB
/
Release.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Release
on:
push:
tags:
jobs:
release:
name: Build chronogram-dist and package for release
runs-on: ubuntu-latest
permissions:
contents: write
env:
LISP: sbcl-bin
QUICKLISP_DIST: ultralisp
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Lisp
continue-on-error: true
uses: 40ants/setup-lisp@v4
with:
qlfile-template: |
{% ifequal quicklisp_dist "ultralisp" %}
dist ultralisp http://dist.ultralisp.org
{% endifequal %}
- name: Build make-chronogram-dist
shell: bash
run: |
ros install neil-lindquist/ci-utils
asdf-register-project
ros run --eval '(progn (ql:quickload :chronogram/make-dist) (asdf:make :chronogram/make-dist))'
- name: Run make-chronogram-dist
shell: bash
run: |
./make-chronogram-dist
- name: Push dist to ultralisp branch
uses: stefanzweifel/git-auto-commit-action@v4
if: startsWith(github.ref, 'refs/tags/')
with:
commit_message: Update dist for ultralisp
branch: ultralisp
commit_options: '--no-verify'
add_options: '-f'
file_pattern: 'chronogram-dist*'
push_options: '--force'
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
create_branch: true
disable_globbing: false
- name: Package release
shell: bash
run: |
mkdir cl-chronogram
cp LICENSE README.org chronogram.asd CLDR_RELEASE *.lisp cl-chronogram/
cp -r chronogram-dist cl-chronogram/
zip -r cl-chronogram.zip cl-chronogram/
- uses: actions/upload-artifact@v3
with:
name: cl-chronogram
path: cl-chronogram/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: cl-chronogram.zip