forked from momentohq/client-sdk-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.34 KB
/
on-push-to-main-branch.yml
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
38
39
40
41
42
43
44
45
46
47
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.ELIXIR_REPO_ACCESS_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.ELIXIR_REPO_ACCESS_TOKEN }}
- name: publish release check
run: |
echo "Publish release: ${{ steps.release.outputs.src--release_created }}"
- name: Publish test
run: |
echo "Published version: ${{ steps.release.outputs.src--tag_name }}"
if: ${{ steps.release.outputs.src--release_created }}
# - name: Publish to hex
# if: ${{ steps.release.outputs.release_created }}
# env:
# HEX_API_KEY: ${{ secrets.ELIXIR_HEX_PACKAGE_PUBLISH_API_KEY }}
# run: |
# pushd src
# mix hex.publish --yes
# popd