Skip to content

Commit

Permalink
actionsで自動リリースするように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
moratori committed Dec 29, 2021
1 parent 5a30145 commit f806ef4
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: release
on:
push:
tags:
- 'v*'
jobs:
releaseapp:
runs-on: ubuntu-latest
strategy:
matrix:
lisp: [sbcl-bin]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v1
- name: Install Roswell
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Install libraries that cannot be installed with quicklisp
run: |
ros install massung/lexer
- name: Create Build
run: |
ros dump --delete-debug-info --remove-docstrings --disable-compression executable ./roswell/clover-build.ros
- name: Create release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Create asset name
id: assetname
run: |
VERSION=$(echo ${{ github.ref }} | sed -e "s#refs/tags/##g")
ASSETNAME=clover-linux-x86_64_${VERSION}
echo ::set-output name=assetname::$ASSETNAME
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./roswell/clover-build
asset_name: ${{ steps.assetname.outputs.assetname }}
asset_content_type: application/x-elf

0 comments on commit f806ef4

Please sign in to comment.