Skip to content

Commit

Permalink
ci: fix pre-release with build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed May 21, 2024
1 parent e4e36c6 commit 9a20b3c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,38 @@ permissions:
jobs:
echo:
runs-on: ubuntu-latest
outputs:
beta: ${{ steps.is_beta.outputs.BETA}}
steps:
- name: echo
run: |
echo EVENT NAME = ${{ github.event_name }}
echo BETA = ${{ inputs.beta || false}}
echo BUMP = ${{ inputs.bump || false}}
- name: beta
id: is_beta
run: echo "BETA=$(node -p "require('./package.json').version.includes('-')")" >> "$GITHUB_OUTPUT"

release:
if: (github.event_name == 'push') || (github.event_name == 'workflow_dispatch' && !inputs.bump)
uses: lisandra-dev/reusable-workflows/.github/workflows/obsidian-plugin-release.yaml@main
needs: echo
with:
PLUGIN_NAME: "obsidian-mkdocs-publisher"
STYLE: true
BETA: ${{ inputs.beta || false }}
BETA: ${{ needs.echo.outputs.beta }}
SUBMODULE: true
CACHE: "pnpm"
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
bump-version-and-release:
if: ${{ inputs.bump }}
needs: echo
uses: lisandra-dev/reusable-workflows/.github/workflows/obsidian-plugin-bump-version.yaml@main
with:
PLUGIN_NAME: "obsidian-mkdocs-publisher"
STYLE: true
BETA: ${{ inputs.beta }}
BETA: ${{ needs.echo.outputs.beta }}
SUBMODULE: true
CACHE: "pnpm"
secrets:
Expand Down

0 comments on commit 9a20b3c

Please sign in to comment.