Skip to content

Commit

Permalink
ci(release): add force publish and release artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenEast committed Sep 15, 2023
1 parent 7e9dbc8 commit 9b438b5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ permissions:
pull-requests: write
on:
workflow_dispatch:
inputs:
force-publish-crate:
required: true
type: boolean
description: Publish crate even if no new release was created.
force-publish-packages:
required: true
type: boolean
description: Publish packages even if no new release was created.
push:
branches:
- main
- ci/*

env:
CARGO_INCREMENTAL: 0
Expand Down Expand Up @@ -79,6 +87,7 @@ jobs:
upload_artifacts:
name: Add build artifacts to release
needs: [release_please, github_build]
if: ${{ needs.release-please.outputs.release_created == 'true' || github.event.inputs.force-publish-packages == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Setup | Artifacts
Expand All @@ -100,7 +109,7 @@ jobs:

publish_crate:
needs: release_please
if: ${{ needs.release-please.outputs.release_created }}
if: ${{ needs.release-please.outputs.release_created || github.event.inputs.force-publish-crate == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
Expand Down

0 comments on commit 9b438b5

Please sign in to comment.