Skip to content

Commit

Permalink
Try a different action for releases
Browse files Browse the repository at this point in the history
The previous one doesn't seem to work with organization repos.
  • Loading branch information
jwilger committed Jan 27, 2024
1 parent 2ff35f0 commit 33c59bb
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,30 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3

- name: Publish to Hex.pm
uses: erlangpack/github-action@v3
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
with:
elixir-version: '1.16.0' # [Required] Define the Elixir version
otp-version: '26.2' # [Required] Define the Erlang/OTP version
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Restore _build cache
uses: actions/cache@v3
with:
path: _build
key: ${{ runner.os }}-build-${{ hashFiles('**/*.ex') }}
restore-keys: ${{ runner.os }}-build-
- name: Install dependencies
run: mix deps.get
- name: Publish to Hex
uses: synchronal/hex-publish-action@v3
with:
name: gpt_agent
key: ${{ secrets.HEX_API_KEY }}
organization: artium
tag-release: false

0 comments on commit 33c59bb

Please sign in to comment.