ci(releases): refactored structures of workflows #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev release on latest commit of default branch | ||
on: | ||
# Triggers the workflow on push events on the default branch | ||
workflow_dispatch: | ||
push: | ||
env: | ||
DEV_VERSION: v0.0.0 | ||
jobs: | ||
cleanup-of-dev-release: | ||
if: github.ref_name == github.event.repository.default_branch | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Delete Release and Tag | ||
run: gh release delete ${{ env.DEV_VERSION }} --cleanup-tag | ||
continue-on-error: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
create-dev-release-based-on-current-default-branch: | ||
needs: cleanup-of-dev-release | ||
uses: ./.github/workflows/publish-release.yml | ||
with: | ||
version: ${{ env.DEV_VERSION }} | ||
Check failure on line 29 in .github/workflows/latest.yml GitHub Actions / Dev release on latest commit of default branchInvalid workflow file
|