name: Draft Github Release on: push: tags: - '**' jobs: run-ci: uses: Jikoo/OpenInv/.github/workflows/ci.yml@master draft-release: needs: [ run-ci ] runs-on: ubuntu-latest steps: # Fetch all history - used to assemble changelog. - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set Release Variables run: bash ./scripts/set_release_env.sh - name: Download Artifact uses: actions/download-artifact@v3 with: name: dist path: dist - name: Create Release id: create-release uses: softprops/action-gh-release@v0.1.15 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: name: ${{ env.VERSIONED_NAME }} body: ${{ env.GENERATED_CHANGELOG }} draft: true prerelease: false files: ./dist/OpenInv.jar