From 3e8babf2d2dc300e0ea377d88acebd1f7df0247c Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Wed, 14 Feb 2024 15:26:02 +0100 Subject: [PATCH] chore(ci): add release workflow --- .github/workflows/release_concrete_fft.yml | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release_concrete_fft.yml diff --git a/.github/workflows/release_concrete_fft.yml b/.github/workflows/release_concrete_fft.yml new file mode 100644 index 0000000..b543175 --- /dev/null +++ b/.github/workflows/release_concrete_fft.yml @@ -0,0 +1,41 @@ +# Publish new release of concrete-fft +name: Publish concrete-fft release + +on: + workflow_dispatch: + inputs: + dry_run: + description: "Dry-run" + type: boolean + default: true + +env: + ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + +jobs: + publish_release: + name: Publish concrete-fft Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + with: + fetch-depth: 0 + + - name: Publish crate.io package + env: + DRY_RUN: ${{ inputs.dry_run && '--dry-run' || '' }} + run: | + cargo publish -p concrete-fft --token ${{ secrets.CARGO_REGISTRY_TOKEN }} ${{ env.DRY_RUN }} + + - name: Slack Notification + if: ${{ failure() }} + continue-on-error: true + uses: rtCamp/action-slack-notify@b24d75fe0e728a4bf9fc42ee217caa686d141ee8 + env: + SLACK_COLOR: ${{ job.status }} + SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} + SLACK_ICON: https://pbs.twimg.com/profile_images/1274014582265298945/OjBKP9kn_400x400.png + SLACK_MESSAGE: "concrete-fft release failed: (${{ env.ACTION_RUN_URL }})" + SLACK_USERNAME: ${{ secrets.BOT_USERNAME }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}