diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cc97303..3a6e12e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Release CheapMC +name: Release CheapDesign on: push: @@ -7,6 +7,8 @@ on: - "version.txt" - "pack/**" + workflow_dispatch: + jobs: release: runs-on: ubuntu-latest @@ -22,16 +24,22 @@ jobs: VERSION=$(cat version.txt | tr -d '\n') echo "version=$VERSION" >> $GITHUB_OUTPUT - - name: build CheapMC + # -------- ZIP BUILD -------- + - name: Build Java texture packs run: | cd pack - zip -r ../CheapMC-${{ steps.version.outputs.version }}.zip . + zip -r ../CheapDesign-${{ steps.version.outputs.version }}.zip . + cd .. + cp CheapDesign-${{ steps.version.outputs.version }}.zip CheapMC-${{ steps.version.outputs.version }}.zip - - name: GitHub Release erstellen + # -------- GITHUB RELEASE -------- + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ steps.version.outputs.version }} - name: CheapMC ${{ steps.version.outputs.version }} - files: CheapMC-${{ steps.version.outputs.version }}.zip + name: CheapDesign ${{ steps.version.outputs.version }} + files: | + CheapDesign-${{ steps.version.outputs.version }}.zip + CheapMC-${{ steps.version.outputs.version }}.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}