-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (37 loc) · 1.38 KB
/
release.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
name: Release new version to CurseForge
on:
push:
branches:
- master
jobs:
release:
if: "contains(github.event.head_commit.message, 'release')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}
- name: "Delete CurseForge restricted files"
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
run: |
mkdir sArena_Updated2_by_sammers
cp -R Ace3 sArena_Updated2_by_sammers/
cp -R Layouts sArena_Updated2_by_sammers/
cp -R Modules sArena_Updated2_by_sammers/
cp Config.lua sArena_Updated2_by_sammers/
cp LICENSE.txt sArena_Updated2_by_sammers/
cp sArena_Updated2_by_sammers.toc sArena_Updated2_by_sammers/
cp sArena.lua sArena_Updated2_by_sammers/
cp sArena.xml sArena_Updated2_by_sammers/
zip -vr sArena_Updated2_by_sammers-$RELEASE_VERSION.zip sArena_Updated2_by_sammers/
# - name: "Upload to CurseForge"
# uses: itsmeow/curseforge-upload@v3
# with:
# file_path: "sArena_Updated2_by_sammers-$RELEASE_VERSION.zip"
# game_endpoint: "worldofwarcraft"
# game_versions: ""
# project_id: 0
# token: "${{ secrets.CF_API_TOKEN }}"