-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.06 KB
/
cd-tags.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CD Tags
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Hub
run: sudo snap install hub --classic
- name: Set up Zip
run: sudo apt install -y zip
- name: Repository Checkout
uses: actions/checkout@v2
- name: Assemble Zip
run: |
zip -r -9 evt-client-$(git describe --tags --abbrev=0).zip \
bin/** config/** mods/** resourcepacks/**
- name: Deploy to Releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: 'hub release create
-a ./evt-client-$(git describe --tags --abbrev=0).zip
-F ./CHANGELOG.md
$(git describe --tags --abbrev=0)'
- name: Deploy to Download Trunk
env:
CDN_UPLOAD_SECRET: ${{ secrets.CDN_UPLOAD_SECRET }}
run: |
curl \
-X PUT \
-H "Authorization: Basic $CDN_UPLOAD_SECRET" \
-F "file=@evt-client-$(git describe --tags --abbrev=0).zip" \
https://cdn.zekro.de/modpacks/evolved-technics/trunk/client/latest.zip