Merge pull request #87 from momentohq/runtime-version #41
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: On push to main branch | |
on: | |
push: | |
branches: [main] | |
jobs: | |
generate-readme-and-prep-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} | |
- name: Generate README | |
uses: momentohq/standards-and-practices/github-actions/generate-and-commit-oss-readme@gh-actions-v2 | |
with: | |
project_status: official | |
project_stability: beta | |
project_type: sdk | |
sdk_language: Elixir | |
dev_docs_slug: elixir | |
- name: Update release branch | |
uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
token: ${{ secrets.MOMENTO_MACHINE_USER_GITHUB_TOKEN }} | |
path: src | |
release-type: elixir | |
package-name: client-sdk-elixir | |
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]' | |
- name: Setup Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '25.3.2' | |
elixir-version: '1.14.5' | |
- name: Publish to hex | |
env: | |
HEX_API_KEY: ${{ secrets.ELIXIR_HEX_PACKAGE_PUBLISH_API_KEY }} | |
run: | | |
pushd src | |
mix deps.get | |
mix compile | |
mix hex.publish --yes | |
popd | |
if: ${{ steps.release.outputs.src--release_created }} |