Skip to content

v0.16.0

v0.16.0 #30

Workflow file for this run

name: StellarBase CD
on:
release:
types:
[published]
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
publish:
name: Publish Release to HEX PM
runs-on: ubuntu-20.04
strategy:
matrix:
otp: ['23.3']
elixir: ['1.13']
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
hex.pm:443
repo.hex.pm:443
builds.hex.pm:443
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: erlef/setup-elixir@a6e26b22319003294c58386b6f25edbc7336819a # v1.18.0
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install Dependencies
run: |
rm -rf deps _build
mix deps.get
- name: Publish
run: HEX_API_KEY=$HEX_API_KEY mix hex.publish --yes