-
Notifications
You must be signed in to change notification settings - Fork 13
37 lines (37 loc) · 838 Bytes
/
build.yml
File metadata and controls
37 lines (37 loc) · 838 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
---
name: Build
'on':
push:
branches:
- main
tags:
- "**"
pull_request_target:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: Build
run: bundle exec rake
- name: Release
if: github.ref_type == 'tag'
run: bundle exec rake release
env:
GEM_HOST_API_KEY: "${{ secrets.GEM_HOST_API_KEY }}"
- name: Post to hook-exporter
run: "./.github/exporter.sh"
env:
EXPORTER_TOKEN: "${{ secrets.EXPORTER_TOKEN }}"
JOB_STATUS: "${{ job.status }}"
if: always() && github.ref == 'refs/heads/main'