-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (40 loc) · 1.83 KB
/
pre_release.yml
File metadata and controls
47 lines (40 loc) · 1.83 KB
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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Pre-Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+-alpha*"
- "v[0-9]+.[0-9]+.[0-9]+-beta*"
- "v[0-9]+.[0-9]+.[0-9]+-rc*"
jobs:
deploy-prerelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy for Testing
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: site/updates
clean: false
- name: Assign build.version.properties to env variable
run: cat site/updates/testing/build.version.properties >> $GITHUB_ENV
- name: 'Zip artifacts ${{ env.build_version_full }} for Pre-Release'
uses: papeloto/action-zip@v1
with:
files: site/updates/testing/${{ env.build_version_path }}
dest: EasyShell-${{ env.build_version_full }}.zip
- name: Pre-Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
prerelease: true
body: |
### Testing build **${{ env.build_version_full }}**
All versions update site: `http://anb0s.github.io/EasyShell/testing`
Exact version update site: `http://anb0s.github.io/EasyShell/testing/${{ env.build_version_path }}`
Version: `EasyShell ${{ env.build_version_full }}`
**Use "Help | Install New Software...", paste the update site link and select the right version!**
[Milestone ${{ env.build_version_unqualified }}](https://github.com/anb0s/EasyShell/milestone/${{ env.build_version_milestone }}?closed=1)
files: EasyShell-${{ env.build_version_full }}.zip