fix: ignore revoked PGP key import errors #18
This file contains 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
name: Release | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
permissions: | |
contents: read | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
permissions: | |
contents: read | |
release: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
with: | |
persist-credentials: false | |
- name: Set up Elixir | |
id: setup-beam | |
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0 | |
with: | |
version-type: strict | |
version-file: .tool-versions | |
- name: Restore dependencies cache | |
uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 | |
env: | |
cache-key: deps | |
with: | |
key: ${{ env.cache-key }}-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }} | |
restore-keys: | | |
${{ env.cache-key }}-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }}-${{ hashFiles('**/mix.lock') }} | |
${{ env.cache-key }}-${{ runner.os }}-${{ steps.setup-beam.outputs.otp-version }}-${{ steps.setup-beam.outputs.elixir-version }} | |
path: | | |
deps | |
_build | |
- name: Install dependencies | |
run: | | |
mix local.hex --force | |
mix do deps.get, deps.compile | |
- name: Use Node.js LTS | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version-file: ".tool-versions" | |
- name: Install packages | |
run: npm ci | |
- name: Audit npm signatures | |
run: npm audit signatures | |
- name: Run Semantic Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | |
HEX_API_KEY: ${{ secrets.HEX_API_KEY }} |