fix db name #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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: | |
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() && github.ref == 'refs/heads/main' |