-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (51 loc) · 1.31 KB
/
daily-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This workflow will build a Java project with Ant and create a daily
# release of the bash and win targets.
#
# For more information see:
# - https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
# - https://github.com/AAVSO/VStar/issues/340
name: Snapshot release
#on:
# schedule:
# # every day at 0845 GMT
# - cron: '45 08 * * *'
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
name: Snapshot release
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: '8'
- name: Create plugin dir
run:
mkdir -p ~/vstar_plugins
- name: Create plugin libs dir
run:
mkdir -p ~/vstar_plugin_libs
- name: Build bash archive
run:
ant -noinput -buildfile build.xml bash
- name: Build win archive
run:
ant -noinput -buildfile build.xml win
- name: Build plugins archive
run: |
cd plugin
ant -noinput -buildfile build.xml aavso
cd ..
- uses: pyTooling/Actions/releaser@r0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: snapshot
rm: true
files: |
vstar-bash.zip
vstar-win.zip
plugin/vstar-plugins.zip