Skip to content

Update .version

Update .version #44

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
paths:
- .github/.version
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read .version file
id: version
run: echo "version=$(cat .github/.version)" >> $GITHUB_OUTPUT
- name: change version numbers
run: |
sed -i "s|0.0.0|"$(cat .github/.version)"|g" Installer.bat
sed -i "s|0.0.0|"$(cat .github/.version)"|g" MC-Launcher.bat
sed -i "s|0.0.0|"$(cat .github/.version)"|g" Mod-Installer.bat
- uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
*.bat
*.ico
- uses: crowbarmaster/GH-Automatic-Releases@latest
if: github.event_name != 'pull_request'
with:
prerelease: false
repo_token: ${{ github.token }}
title: ${{ steps.version.outputs.version }}
automatic_release_tag: ${{ steps.version.outputs.version }}
files: |
*.bat
*.ico