-
-
Notifications
You must be signed in to change notification settings - Fork 42
35 lines (33 loc) · 1.28 KB
/
release.yaml
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
name: Release
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Roswell
env:
LISP: sbcl
ROSWELL_INSTALL_DIR: /usr
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Setup Qlot
run: scripts/setup.sh
- name: Bundle dependencies
run: scripts/run.sh bundle --exclude qlot/tests --exclude "qlot/tests/*"
- name: Create a bundled tarball
run: |
tar cvfz /tmp/qlot-${{ github.ref_name }}.tar.gz --exclude './.git' --exclude './.qlot' -C ../ qlot
echo -e "#!/bin/bash\n\nVERSION=${{ github.ref }}\nQLOT_ARCHIVE=https://github.com/fukamachi/qlot/releases/download/${GITHUB_REF_NAME}/qlot-${GITHUB_REF_NAME}.tar.gz\n" > /tmp/qlot-installer-${{ github.ref_name }}.sh
tail -n +5 scripts/qlot-installer.sh >> /tmp/qlot-installer-${{ github.ref_name }}.sh
- name: Release and publish assets
uses: softprops/action-gh-release@v1
with:
files: |
/tmp/qlot-${{ github.ref_name }}.tar.gz
/tmp/qlot-installer-${{ github.ref_name }}.sh