Create Pre-Release #47
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: Create Pre-Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to release' | |
type: string | |
required: true | |
refToRelease: | |
description: 'Ref to release (branch, sha, tag, etc)' | |
type: string | |
required: true | |
default: 'main' | |
jobs: | |
run-tests: | |
name: Run tests | |
uses: ./.github/workflows/run-tests.yml | |
create-pre-release: | |
name: Create Pre-Release | |
needs: run-tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ inputs.refToRelease }} | |
- name: Tag Version | |
run: | | |
echo Creating pre-release version: ${{inputs.version}} | |
git config --local user.email "[email protected]" | |
git config --local user.name "CfA Platforms Robot" | |
git tag -a ${{inputs.version}} -m "Pre-release version ${{inputs.version}}" | |
git push origin ${{inputs.version}} | |
- name: Draft Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{inputs.version}} | |
generate_release_notes: true | |
body: | | |
FILL IN DETAILS ABOUT THIS RELEASE! | |
draft: true | |
prerelease: true |