This file contains hidden or 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
| # #TODO: set up hex publish on git release w/ semver tag. | |
| # name: Publish to Hex | |
| # on: | |
| # release: | |
| # types: [created] | |
| # jobs: | |
| # publish: | |
| # name: Publish to Hex | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v3 | |
| # - name: Set up Elixir | |
| # uses: erlef/setup-beam@v1 | |
| # with: | |
| # elixir-version: '1.15.7' | |
| # otp-version: '26.2' | |
| # - name: Restore dependencies cache | |
| # uses: actions/cache@v3 | |
| # with: | |
| # path: | | |
| # deps | |
| # _build | |
| # key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
| # restore-keys: ${{ runner.os }}-mix- | |
| # - name: Install dependencies | |
| # run: mix deps.get | |
| # - name: Verify version matches release | |
| # run: | | |
| # MIX_VERSION=$(mix run -e "IO.puts(Application.spec(:oci)[:vsn])") | |
| # GITHUB_VERSION=${GITHUB_REF#refs/tags/v} | |
| # if [ "$MIX_VERSION" != "$GITHUB_VERSION" ]; then | |
| # echo "Version mismatch: mix.exs has $MIX_VERSION but release is v$GITHUB_VERSION" | |
| # exit 1 | |
| # fi | |
| # - name: Generate docs | |
| # run: mix docs | |
| # - name: Publish to Hex | |
| # env: | |
| # HEX_API_KEY: ${{ secrets.HEX_API_KEY }} | |
| # run: mix hex.publish |