-
Notifications
You must be signed in to change notification settings - Fork 10
31 lines (31 loc) · 1.05 KB
/
buildpack.yml
File metadata and controls
31 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Build pack zip and upload to Revival CDN
on:
push:
branches:
- '1.20'
jobs:
Build-Pack:
name: Build pack zip and upload
runs-on: ubuntu-latest
steps:
- name: Download pack files
uses: actions/checkout@v4
- name: Remove files with uppercase letters in filepath
run: find . -path '*[[:upper:]]*' -type f -delete
- name: Remove all PSDs
run: find . -name '*.psd' -type f -delete
- name: Remove all empty directories
run: find . -empty -type d -delete
- name: Zip files
run: mkdir out && zip -r out/Revival-20.zip assets pack.mcmeta pack.png
- name: Zip files (custom item pack)
run: zip -r out/Akenland-Items.zip assets/akenland pack.mcmeta pack.png
- name: Upload to CDN
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: revival
source-dir: out
destination-dir: ./