-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.24 KB
/
build_and_publish.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
name: Build and publish
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: docker-compose up
- name: Upload Artifact
uses: actions/[email protected]
with:
name: executables
path: |
*.AppImage
build-windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build (Windows)
run: docker-compose -f docker-compose.windows.yml up
- name: Make Windows Installer
run: ./create_windows_installer.sh
- name: Zip Portable Windows Artifact
run: zip -r windows-portable.zip package
- name: Upload Artifact
uses: actions/[email protected]
with:
name: executables
path: |
*.zip
*.exe
publish:
needs: [build, build-windows]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/[email protected]
- uses: "marvinpinto/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
**/*.AppImage
**/*.zip
**/*.exe