fix release ci #2
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - '[0-9]+.[0-9]+.[0-9]+' | |
| - '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/ci-build.yml | |
| # Create a draft GitHub release for stable tags (skip -rc.* prereleases) | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: ${{ !contains(github.ref_name, '-rc.') }} | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download module artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: OpenShock.LocalRelay.module | |
| path: artifacts/ | |
| - name: Create draft release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: ${{ github.ref_name }} | |
| draft: true | |
| generate_release_notes: true | |
| files: artifacts/OpenShock.LocalRelay.module.zip |