Skip to content

Commit

Permalink
ci: modify the release.yml flow to make the release
Browse files Browse the repository at this point in the history
Signed-off-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>
Signed-off-by: goncalo-frade-iohk <goncalo.frade@iohk.io>
  • Loading branch information
yshyn-iohk authored and goncalo-frade-iohk committed Sep 12, 2024
1 parent b7ad212 commit f65f450
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: Release sdk

concurrency:
group: release

on:
workflow_dispatch:

Expand All @@ -10,7 +13,9 @@ jobs:
ATALA_GITHUB_ACTOR: ${{ github.actor }}
ATALA_GITHUB_TOKEN: ${{ secrets.IDENTUS_CI }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -23,19 +28,23 @@ jobs:
with:
node-version: "lts/*"

- uses: crazy-max/ghaction-import-gpg@v5
- uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_private_key: ${{ secrets.HYP_BOT_GPG_PRIVATE }}
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true
git_tag_gpgsign: false

- name: Release
env:
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }}
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
GITHUB_TOKEN: ${{ secrets.IDENTUS_CI }}
run: |
npm install
npx semantic-release

0 comments on commit f65f450

Please sign in to comment.