From 118b7f4549d8a16b89d57ab06d3e5b7cdb74add3 Mon Sep 17 00:00:00 2001 From: Victor Matos Date: Sat, 11 Mar 2023 11:30:56 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7add=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Victor Matos --- .github/workflows/upload.yml | 147 +++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 .github/workflows/upload.yml diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml new file mode 100644 index 0000000..7d71e03 --- /dev/null +++ b/.github/workflows/upload.yml @@ -0,0 +1,147 @@ +name: up texture pack 📤 +on: + push: + tags: + - 'v*.*.*' + +jobs: + job1: + name: Texture Pack 1.19.4 🎨 + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: checking branch 1.19.4 🔍️ + uses: actions/checkout@v3 + + - name: Redeem the sent Tag 🏷️ + run: | + TAG=$(git describe --tags --abbrev=0) + TAG="${TAG#v}" + echo "LATEST_TAG=$TAG" >> $GITHUB_ENV + + - name: Compressing texture from version 1.19.4 📦️ + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'Dark_Everywhere_1.19.4.zip' + exclusions: '*.git* /*node_modules/* .editorconfig *.md pack_hd.png' + + - name: Uploading the Texture 1.19.4 🗃️ + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + generateReleaseNotes: true + draft: false + tag: "v${{ env.LATEST_TAG }}" + name: "Dark Everywhere ${{ env.LATEST_TAG }}🌙" + artifacts: "*.zip" + token: ${{ secrets.GITHUB_TOKEN }} + + job2: + needs: job1 + name: Texture Pack 1.19.3 🎨 + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: checking branch 1.19.3 🔍️ + uses: actions/checkout@v3 + with: + ref: '1.19.3' + + - name: Redeem the sent Tag 🏷️ + run: | + TAG="${GITHUB_REF#refs/tags/}" + TAG="${TAG#v}" + echo "LATEST_TAG=$TAG" >> $GITHUB_ENV + + - name: Compressing texture from version 1.19.3 📦️ + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'Dark_Everywhere_1.19.3.zip' + exclusions: '*.git* /*node_modules/* .editorconfig *.md pack_hd.png' + + - name: Uploading the Texture 1.19.3 🗃️ + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + generateReleaseNotes: true + draft: false + tag: "v${{ env.LATEST_TAG }}" + name: "Dark Everywhere ${{ env.LATEST_TAG }}🌙" + artifacts: "*.zip" + token: ${{ secrets.GITHUB_TOKEN }} + + job3: + needs: job2 + name: Texture Pack 1.19 🎨 + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: checking branch 1.19 🔍️ + uses: actions/checkout@v3 + with: + ref: '1.19' + + - name: Redeem the sent Tag 🏷️ + run: | + TAG="${GITHUB_REF#refs/tags/}" + TAG="${TAG#v}" + echo "LATEST_TAG=$TAG" >> $GITHUB_ENV + + - name: Compressing texture from version 1.19 📦️ + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'Dark_Everywhere_1.19.zip' + exclusions: '*.git* /*node_modules/* .editorconfig *.md pack_hd.png' + + - name: Uploading the Texture 1.19 🗃️ + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + generateReleaseNotes: true + draft: false + tag: "v${{ env.LATEST_TAG }}" + name: "Dark Everywhere ${{ env.LATEST_TAG }}🌙" + artifacts: "*.zip" + token: ${{ secrets.GITHUB_TOKEN }} + + job4: + needs: job3 + name: Texture Pack 1.18 🎨 + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: checking branch 1.18 🔍️ + uses: actions/checkout@v3 + with: + ref: '1.18' + + - name: Redeem the sent Tag 🏷️ + run: | + TAG="${GITHUB_REF#refs/tags/}" + TAG="${TAG#v}" + echo "LATEST_TAG=$TAG" >> $GITHUB_ENV + + - name: Compressing texture from version 1.18 📦️ + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'Dark_Everywhere_1.18.zip' + exclusions: '*.git* /*node_modules/* .editorconfig *.md pack_hd.png' + + - name: Uploading the Texture 1.18 🗃️ + uses: ncipollo/release-action@v1 + with: + allowUpdates: true + generateReleaseNotes: true + draft: false + tag: "v${{ env.LATEST_TAG }}" + name: "Dark Everywhere ${{ env.LATEST_TAG }}🌙" + artifacts: "*.zip" + token: ${{ secrets.GITHUB_TOKEN }}