Create-Release-Test #10
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-Release-Test | |
on: | |
# push: # Uncomment this line to run the workflow on push | |
workflow_dispatch: # This line allows you to run the workflow manually from the GitHub Actions page | |
workflow_call: # This line allows you to run the workflow from another workflow | |
jobs: | |
build: | |
runs-on: windows-2022 | |
permissions: write-all | |
steps: | |
# Check out the repository with the GameMaker project | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- id: get_date_time | |
name: Get Current Date | |
run: | | |
echo "Direct Date Output: $(date +%Y-%m-%d-%H%M)" | |
echo "DATE_TIME=$(date +%Y-%m-%d-%H%M)" >> $GITHUB_ENV | |
- name: Debug Date Output | |
run: | | |
echo "Date Time: $DATE_TIME" | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_tag: $DATE_TIME | |
- id: create_release | |
name: Create a Pre-Release with the Build | |
uses: softprops/[email protected] | |
with: | |
name: ChapterMaster-Windows-$DATE_TIME | |
tag_name: $DATE_TIME # Assuming you want to use the same date-time for the tag | |
files: ${{ steps.igor_build.outputs.out-dir }} # **NOTE:** This step won't work because `igor_build` is not defined in your provided workflow. You'll need to define this step or correct the reference. | |
prerelease: true |