Skip to content

v0.13.0

v0.13.0 #18

Workflow file for this run

name: Soroban.ex 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-latest
strategy:
matrix:
otp: ["24.3.4.9"]
elixir: ["1.14.0"]
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.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@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
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