Skip to content

Commit

Permalink
Add semaphore.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraBeatris committed Dec 19, 2023
1 parent 3397781 commit 996b410
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .semaphore/release_to_hex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: v1.0
name: Release to Hex

agent:
machine:
type: e1-standard-2
os_image: ubuntu1804

blocks:
- name: Build and Release
task:
secrets:
- name: elixir-hex-api-key
jobs:
- name: Elixir Build and Release
commands:
- checkout
- sem-version elixir 1.11.4
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix compile
- mix hex.publish --yes
24 changes: 24 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: v1.0
name: Elixir

agent:
machine:
type: e2-standard-2
os_image: ubuntu1804

blocks:
- name: Run Tests 👩🏽‍🔬
task:
jobs:
- name: Elixir Tests
commands:
- checkout
- sem-version elixir 1.11.4
- mix local.hex --force
- mix local.rebar --force
- mix deps.get
- mix test

promotions:
- name: Release to Hex 🚀
pipeline_file: .semaphore/release_to_hex.yml

0 comments on commit 996b410

Please sign in to comment.