20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Release CheapMC
|
name: Release CheapDesign
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,6 +7,8 @@ on:
|
|||||||
- "version.txt"
|
- "version.txt"
|
||||||
- "pack/**"
|
- "pack/**"
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -22,16 +24,22 @@ jobs:
|
|||||||
VERSION=$(cat version.txt | tr -d '\n')
|
VERSION=$(cat version.txt | tr -d '\n')
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: build CheapMC
|
# -------- ZIP BUILD --------
|
||||||
|
- name: Build Java texture packs
|
||||||
run: |
|
run: |
|
||||||
cd pack
|
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
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.version.outputs.version }}
|
tag_name: ${{ steps.version.outputs.version }}
|
||||||
name: CheapMC ${{ steps.version.outputs.version }}
|
name: CheapDesign ${{ steps.version.outputs.version }}
|
||||||
files: CheapMC-${{ steps.version.outputs.version }}.zip
|
files: |
|
||||||
|
CheapDesign-${{ steps.version.outputs.version }}.zip
|
||||||
|
CheapMC-${{ steps.version.outputs.version }}.zip
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user