2022-12-04 19:51:38 +03:00
|
|
|
name: CD
|
2024-04-14 00:15:27 +03:00
|
|
|
|
2022-12-04 19:51:38 +03:00
|
|
|
on:
|
|
|
|
push:
|
2023-09-10 12:25:41 +03:00
|
|
|
branches:
|
2024-04-14 00:15:27 +03:00
|
|
|
- production
|
|
|
|
tags-ignore:
|
|
|
|
- "**"
|
2022-12-04 19:51:38 +03:00
|
|
|
|
|
|
|
jobs:
|
2024-04-14 00:15:27 +03:00
|
|
|
release:
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
issues: write
|
|
|
|
pull-requests: write
|
2022-12-04 19:51:38 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-04-14 00:15:27 +03:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- uses: ruby/setup-ruby@v1
|
|
|
|
with:
|
2024-04-20 19:22:01 +03:00
|
|
|
ruby-version: 3.3
|
2024-04-14 00:15:27 +03:00
|
|
|
bundler-cache: true
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: latest
|
|
|
|
|
|
|
|
- run: npm install
|
|
|
|
- run: npx semantic-release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
|
|
|
|
|
|
|
|
publish:
|
|
|
|
needs: release
|
|
|
|
uses: ./.github/workflows/publish.yml
|