forked from SirPlease/L4D2-Competitive-Rework
-
Notifications
You must be signed in to change notification settings - Fork 8
70 lines (60 loc) · 3.4 KB
/
CompetitiveWithAnne.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CompetitiveWithAnne Update Achieve Release
env:
TZ: Asia/Shanghai
on:
workflow_dispatch:
inputs:
tags:
description: 'Run Tags'
push:
paths:
- '*.md'
branches:
- master
jobs:
release:
if: github.repository == 'fantasylidong/CompetitiveWithAnne'
name: Upload CompetitiveWithAnne Achieve if a new commit was been push.
runs-on: [ubuntu-latest]
steps:
- name: Checkout code
run: |
git clone https://github.com/fantasylidong/CompetitiveWithAnne
git clone --depth 1 -b zonemod https://github.com/fantasylidong/anne.git
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Gzip
run: |
mkdir CompetitiveWithAnne-${{ steps.date.outputs.date }}
mkdir CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/
cp -R CompetitiveWithAnne/* CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/
cp -R anne/left4dead2/sound/ CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/
cp -R anne/left4dead2/models/ CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/
cp -R anne/update/ CompetitiveWithAnne-${{ steps.date.outputs.date }}/
tar -czvf CompetitiveWithAnne-${{ steps.date.outputs.date }}.tar.gz CompetitiveWithAnne-${{ steps.date.outputs.date }}
- name: Gzip norank&&sourcebans&&lilac
run: |
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/l4d_stats.smx
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/sbpp_*
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/lilac.smx
tar -czvf CompetitiveWithAnne-${{ steps.date.outputs.date }}-norank.tar.gz CompetitiveWithAnne-${{ steps.date.outputs.date }}
- name: Gzip nomysql
run: |
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/chat-processor.smx
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/hextags.smx
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/rpg.smx
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/chatlog.smx
rm CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/veterans.smx
cp CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/disabled/rpg.smx CompetitiveWithAnne-${{ steps.date.outputs.date }}/left4dead2/addons/sourcemod/plugins/extend/
tar -czvf CompetitiveWithAnne-${{ steps.date.outputs.date }}-nomysql.tar.gz CompetitiveWithAnne-${{ steps.date.outputs.date }}
- name: Update release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
files: |
CompetitiveWithAnne-${{ steps.date.outputs.date }}.tar.gz
CompetitiveWithAnne-${{ steps.date.outputs.date }}-norank.tar.gz
CompetitiveWithAnne-${{ steps.date.outputs.date }}-nomysql.tar.gz
tag_name: CompetitiveWithAnne-stable-release-${{ steps.date.outputs.date }}