forked from asummers/erlex
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare to release pre-release version to validate handoff.
- Loading branch information
1 parent
e0c0265
commit 9a46df1
Showing
6 changed files
with
82 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Publish ❯ Package | ||
|
||
on: | ||
# push: | ||
# tags: | ||
# - "v*" | ||
workflow_dispatch: {} | ||
|
||
jobs: | ||
hex: | ||
runs-on: ${{ vars.PREFERRED_OS }} | ||
name: Publishing Package | ||
|
||
env: | ||
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} | ||
MIX_ENV: prod | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install Erlang & Elixir | ||
id: beam-versions | ||
uses: erlef/setup-beam@v1 | ||
with: | ||
elixir-version: ${{ vars.PREFERRED_ELIXIR }} | ||
otp-version: ${{ vars.PREFERRED_OTP }} | ||
|
||
- name: Restore mix dependency installation cache | ||
id: mix-deps-get-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: deps | ||
key: cache-${{ vars.CACHE_VERSION }}-os-${{ runner.os }}-otp-${{ steps.beam-versions.outputs.otp-version }}-elixir-${{ steps.beam-versions.outputs.elixir-version }}-env-${{ env.MIX_ENV }}-mix-deps-get-mix-lock-file-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
|
||
- name: Install mix dependencies | ||
if: steps.mix-deps-get-cache.outputs.cache-hit != 'true' | ||
run: mix deps.get | ||
|
||
- name: Restore mix dependency compilation cache | ||
id: mix-deps-compile-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: _build | ||
key: cache-${{ vars.CACHE_VERSION }}-os-${{ runner.os }}-otp-${{ steps.beam-versions.outputs.otp-version }}-elixir-${{ steps.beam-versions.outputs.elixir-version }}-env-${{ env.MIX_ENV }}-mix-deps-compile-mix-lock-file-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} | ||
|
||
- name: Compile mix dependencies | ||
if: steps.mix-deps-compile-cache.outputs.cache-hit != 'true' | ||
run: mix deps.compile | ||
|
||
- name: Publish package to hex.pm | ||
run: mix hex.publish --yes | ||
|
||
results: | ||
name: Publish Package Results | ||
runs-on: ${{ vars.PREFERRED_OS }} | ||
|
||
if: ${{ always() }} | ||
needs: | ||
- hex | ||
|
||
steps: | ||
- name: Test Status Succeeded | ||
if: ${{ needs.hex.result == 'success' }} | ||
run: exit 0 | ||
|
||
- name: Test Status Failed | ||
if: ${{ needs.hex.result == 'failure' }} | ||
run: exit 1 |
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.2.6 | ||
0.2.6-handoff |