Skip to content

Commit 194958e

Browse files
committed
ci: release please
1 parent 6be31d1 commit 194958e

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

Diff for: .github/workflows/release.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release:
13+
name: release
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
otp: [25.3]
18+
elixir: [1.14.x]
19+
steps:
20+
- uses: google-github-actions/release-please-action@v3
21+
id: release
22+
with:
23+
release-type: elixir
24+
package-name: tableau
25+
bump-minor-pre-major: true
26+
27+
- uses: actions/checkout@v3
28+
if: ${{ steps.release.outputs.release_created }}
29+
30+
- uses: erlef/setup-beam@v1
31+
with:
32+
otp-version: ${{matrix.otp}}
33+
elixir-version: ${{matrix.elixir}}
34+
if: ${{ steps.release.outputs.release_created }}
35+
36+
- uses: actions/cache@v3
37+
id: cache
38+
if: ${{ steps.release.outputs.release_created }}
39+
with:
40+
path: |
41+
deps
42+
_build
43+
key: ${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}
44+
restore-keys: |
45+
${{ runner.os }}-mix-${{ matrix.otp }}-${{ matrix.elixir }}-
46+
47+
- name: Install Dependencies
48+
if: steps.release.outputs.release_created && steps.cache.outputs.cache-hit != 'true'
49+
run: mix deps.get
50+
51+
- name: publish to hex
52+
if: ${{ steps.release.outputs.release_created }}
53+
env:
54+
HEX_API_KEY: ${{secrets.HEX_API_KEY}}
55+
run: |
56+
mix hex.publish --yes

0 commit comments

Comments
 (0)