-
Notifications
You must be signed in to change notification settings - Fork 13
47 lines (41 loc) · 1020 Bytes
/
deploy.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
name: 🚀 Deploy Release
on:
push:
branches:
- main
tags:
- "v*.*.*"
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: recursive
# Deploy to local repo
- name: Deploy to Release Branch
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: release
FOLDER: addons/GDTask
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
run: |
mkdir release
mv addons/GDTask release
pushd release
zip -r ../Release.zip *
popd
- name: Upload Release
uses: actions/upload-artifact@v2
with:
name: Release
path: release
- name: Tagged Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Release.zip