Skip to content

Commit 1984cec

Browse files
committed
update ci
1 parent 8f4ff31 commit 1984cec

File tree

4 files changed

+41
-38
lines changed

4 files changed

+41
-38
lines changed

.github/main.workflow

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: push
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Build
11+
run: make build
12+
- name: Test
13+
run: make test

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- name: Build
13+
run: make build
14+
- name: Test
15+
run: make test
16+
- name: Release
17+
run: make release
18+
- name: Upload Release Asset
19+
id: upload-release-asset
20+
uses: actions/upload-release-asset@master
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
upload_url: ${{ github.event.release.upload_url }}
25+
asset_path: ./out/zUtils.FileBinaryTar.xml
26+
asset_name: zUtils.FileBinaryTar.xml
27+
asset_content_type: text/xml

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test: build ## Run UnitTests
1717
docker run --rm -i -v `pwd`/tests:/opt/tests -w /opt --entrypoint /tests_entrypoint.sh $(IMAGE)
1818

1919
release: clean build ## Export as XML
20-
docker run --rm -i -v `pwd`/out:/opt/out -w /opt --entrypoint /build_artifacts.sh $(IMAGE)
20+
docker run --rm -i -v `pwd`/out:/tmp/$(APP_NAME)/out -w /tmp/$(APP_NAME) --entrypoint /build_artifacts.sh $(IMAGE)
2121

2222
clean:
2323
-rm -rf out

0 commit comments

Comments
 (0)