Skip to content

switch to hook-exporter #10

switch to hook-exporter

switch to hook-exporter #10

Workflow file for this run

name: Build
on:
pull_request:
push:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
fetch-depth: 0
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 == 'refs/heads/main' }}
run: |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config --global user.name 'GitHub Actions'
bundle exec rake release
env:
BLACKSMITH_FORGE_API_KEY: ${{ secrets.BLACKSMITH_FORGE_API_KEY }}
- name: Post to hook-exporter
run: ./.github/exporter.sh
env:
EXPORTER_TOKEN: ${{ secrets.EXPORTER_TOKEN }}
JOB_STATUS: ${{ job.status }}
if: ${{ always() }}