forked from ruby/prism
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 995 Bytes
/
build-artifacts.yml
File metadata and controls
42 lines (34 loc) · 995 Bytes
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
name: Build Library Artifacts
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Build library
run: bundle exec rake templates
- name: Package libprism source
run: |
mkdir -p build/libprism-src
cp -r src build/libprism-src/src
cp -r include build/libprism-src/include
cp Makefile build/libprism-src/Makefile
tar -czf build/libprism-src.tar.gz -C build libprism-src
- name: Upload to release
if: github.event_name == 'release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v2
with:
files: build/libprism-src.tar.gz