Merge pull request #3 from dreamsicle-io/release/1.4.0-RC2 #2
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
# Initialize the env variables. These get set after the repo is checked out | |
# because they depend on files in the repo. | |
env: | |
MODULE_VERSION: '' | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it. | |
- name: Checkout Repo | |
id: checkout_repo | |
uses: actions/checkout@v4 | |
# Sets the environment variables from the env.sh script. | |
- name: Set Environment Variables | |
id: set_env_vars | |
run: .github/workflows/scripts/env.sh | |
# Creates a release draft. | |
- name: Create Release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
name: ${{ env.MODULE_VERSION }} | |
tag: ${{ env.MODULE_VERSION }} | |
commit: main | |
draft: true | |
prerelease: false | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true | |
skipIfReleaseExists: true |