forked from dosemu2/comcom64
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 912 Bytes
/
ci-build.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
name: Build
on:
pull_request:
types:
- opened
- edited
- ready_for_review
- reopened
- synchronize
push:
jobs:
build:
if: contains(github.event.head_commit.message, '[skip ci]') == false
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: package install
run: ./ci_prereq.sh
- name: build
run: ./ci_build.sh
- name: test
run: ./ci_test.sh
- name: pages
if: github.ref == 'refs/heads/master'
run: |
mkdir -p pub/files
zip --junk-paths pub/files/comcom32.zip comcom32.exe
echo '<a href="files/comcom32.zip">Latest build</a>' > pub/index.html
- name: deploy
if: github.ref == 'refs/heads/master'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: pub