Skip to content

Commit

Permalink
Remove drone.yml file and add retire gha flow (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
cottinisimone authored Dec 6, 2023
1 parent dc5593b commit 3a90fad
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 277 deletions.
277 changes: 0 additions & 277 deletions .drone.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/retire.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
workflow_dispatch:
inputs:
reason:
description: Retire reason
required: true
default: invalid
type: choice
options:
- renamed
- deprecated
- security
- invalid
- other
message:
description: Retire message
required: true
default: Version has a breaking bug
type: string
version:
description: Version to retire
required: true
default: x.y.z
type: string

jobs:
retire:
runs-on: ubuntu-latest
env:
MESSAGE: ${{ inputs.message }}
REASON: ${{ inputs.reason }}
VERSION: ${{ inputs.version }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '24'
elixir-version: '1.13'
- run: echo "Attempting to retire version $VERSION"
- run: mix hex.config api_key "$HEX_AUTH_KEY"
env:
HEX_AUTH_KEY: ${{ secrets.HEX_AUTH_KEY }}
- run: mix hex.user whoami
- run: mix hex.retire redact_ex "$VERSION" "$REASON" --message "$MESSAGE"

0 comments on commit 3a90fad

Please sign in to comment.