Skip to content

Bump softprops/action-gh-release to v2 #40

Bump softprops/action-gh-release to v2

Bump softprops/action-gh-release to v2 #40

Workflow file for this run

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@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: cl-chronogram.zip