diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e32de2c7..73dee59b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -14,7 +14,7 @@ jobs: - name: Get the version id: get_version - run: echo ::set-output name=version::${GITHUB_REF#refs/tags/R} + run: echo ::set-output name=version::${GITHUB_REF#refs/tags/Pre*-R} - name: Changelog Parser id: changelog @@ -28,9 +28,10 @@ jobs: - name: Set the version run: | DEV=${{ steps.get_version.outputs.version }} - sed -i -e "s/DEV/123/g" manifest.json - sed -i -e "s/DEV/123/g" instance.cfg - sed -i -e "s/DEV/123/g" .minecraft/config/fancymenu/customization/main_menu.txt + echo $DEV + sed -i -e "s/DEV/${DEV}/g" manifest.json + sed -i -e "s/DEV/${DEV}/g" instance.cfg + sed -i -e "s/DEV/${DEV}/g" .minecraft/config/fancymenu/customization/main_menu.txt - name: Archive Release MMC run: zip -r TerraFirmaGreg-1.20-${{ steps.get_version.outputs.version }}-mmc.zip mmc-pack.json instance.cfg .minecraft/