Skip to content

Commit

Permalink
Replace DroneCI with GitHub actions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgnavar authored Jul 7, 2023
1 parent 3678809 commit 742327c
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 80 deletions.
80 changes: 0 additions & 80 deletions .ci.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on:
pull_request:
branches: [master]

jobs:
build-and-test:
name: Build and test elixir
runs-on: ubuntu-latest
container: elixir:1.11-alpine
steps:
- uses: actions/checkout@v3
- name: Install build dependencies
run: |
apk add --update bash openssl git
mix local.hex --force && mix local.rebar --force
- name: Install elixir dependencies
run: mix deps.get
- name: Run CI Tests
env:
MIX_ENV: test
run: mix ci
24 changes: 24 additions & 0 deletions .github/workflows/publish-hexpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to hex.pm

on:
push:
tags:
- "*"

jobs:
publish-hexpm:
name: publish to hex.pm
runs-on: ubuntu-latest
container: elixir:1.11-alpine
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
apk add --update bash openssl git
mix local.hex --force && mix local.rebar --force
- name: Install elixir dependencies
run: mix deps.get
- name: publish to hex.pm
run: mix hex.publish --yes
env:
HEX_API_KEY: ${{ secrets.HEX_KEY_PUBLISH }}

0 comments on commit 742327c

Please sign in to comment.