-
-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (47 loc) · 1.76 KB
/
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
48
49
50
51
52
name: Test and Deploy
# Run this workflow only when a tag is pushed
# Can set custom wildcards instead of '*', like 'v*' for tags starting with v
# NOTE: Releases are only published on tags, see "Release" step below
on:
push:
tags:
- '*'
# Docs on sharing data between jobs (between VMs): https://help.github.com/en/actions/configuring-and-managing-workflows/persisting-workflow-data-using-artifacts#passing-data-between-jobs-in-a-workflow
jobs:
# Linux/Mac Build
linux_mac_build:
name: Deploy Umineko Question Scripts
runs-on: ubuntu-latest
steps:
# Download the 'master/full' script repo
- uses: actions/checkout@v2
with:
ref: master
path: master
# Download the 'voice_only' script repo
- uses: actions/checkout@v2
with:
ref: voice_only
path: voice_only
# Run Deploy Script
- name: Run Deploy Script
run: |
echo ${{ github.ref }} >> 0.u.version.txt
date >> 0.u.version.txt
mv ./master/InDevelopment/ManualUpdates/0.utf ./master/0.u
7z a script-full.7z ./master/0.u 0.u.version.txt
mv ./voice_only/InDevelopment/ManualUpdates/0.utf ./voice_only/0.u
7z a script-voice-only.7z ./voice_only/0.u 0.u.version.txt
# Publish a release
# For more info on options see: https://github.com/softprops/action-gh-release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
with:
files: |
script-full.7z
script-voice-only.7z
body_path: ./master/github_actions_changelog_template.txt
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}