Skip to content

Commit c3713bf

Browse files
authored
chore(ci): fix release workflow (#1389)
1 parent 1d47437 commit c3713bf

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ jobs:
8989

9090
- name: Run Dialyzer
9191
run: mix dialyzer
92+
9293
release:
9394
name: Create or Update Release PR
9495
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,30 @@ name: Release
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: "The git tag for the release to publish"
10+
type: string
11+
default: ${{ github.ref }}
612

713
jobs:
814
publish:
915
runs-on: ubuntu-latest
1016
steps:
1117
- name: Check out
1218
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ inputs.tag }}
21+
22+
- name: Set up Elixir
23+
uses: erlef/setup-beam@v1
24+
with:
25+
elixir-version: 1.19
1326

1427
- name: Publish to hex.pm
15-
uses: wesleimp/action-publish-hex@v1
1628
env:
1729
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
30+
run: |
31+
mix deps.get
32+
mix hex.publish --yes

0 commit comments

Comments
 (0)