This commit is contained in:
@@ -2,6 +2,8 @@ name: Release Resource Pack
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
- '*.*.*'
|
- '*.*.*'
|
||||||
@@ -36,7 +38,17 @@ jobs:
|
|||||||
echo "ZIP_PATH=${ZIP_NAME}" >> "$GITHUB_ENV"
|
echo "ZIP_PATH=${ZIP_NAME}" >> "$GITHUB_ENV"
|
||||||
echo "SHA1_PATH=${ZIP_NAME}.sha1" >> "$GITHUB_ENV"
|
echo "SHA1_PATH=${ZIP_NAME}.sha1" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Upload artifact (ZIP and SHA1)
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: resource-pack-${{ github.ref_name }}-${{ github.run_number }}
|
||||||
|
path: |
|
||||||
|
${{ env.ZIP_PATH }}
|
||||||
|
${{ env.SHA1_PATH }}
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Create Release and Upload Assets (Gitea API)
|
- name: Create Release and Upload Assets (Gitea API)
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user