Skip to content

Commit

Permalink
Initial release packages (#340)
Browse files Browse the repository at this point in the history
Build: Publish release packages
  • Loading branch information
bryphe authored Feb 16, 2019
1 parent 4580e52 commit e14abb3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,8 @@ steps:
displayName: 'esy build'
- script: esy b dune runtest
displayName: 'esy b dune runtest'
- script: esy x Examples
displayName: 'esy x Examples'
continueOnError: true
- script: esy create-release
displayName: 'esy create-release'
10 changes: 10 additions & 0 deletions .ci/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Steps for publishing project cache

steps:
- task: PublishBuildArtifacts@1
displayName: '[Release]'
inputs:
pathToPublish: '_release'
artifactName: 'release-$(Agent.OS)'
parallel: true
parallelCount: 8
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Declare shell files to have LF endings on checkout
# On Windows, the default git setting for `core.autocrlf`
# means that when checking out code, LF endings get converted
# to CRLF. This causes problems for shell scripts, as bash
# gets choked up on the extra `\r` character.
*.sh text eol=lf
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/publish-release.yml
- template: .ci/create-docs.yml
- template: .ci/publish-build-cache.yml

Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/publish-release.yml
- template: .ci/publish-build-cache.yml

- job: Windows
Expand All @@ -82,4 +84,5 @@ jobs:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/publish-release.yml
- template: .ci/publish-build-cache.yml
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"format": "esy dune build @fmt --auto-promote",
"format:windows": "esy b .ci/format.sh",
"doc": "refmterr esy dune build @doc --root ."
"doc": "refmterr esy dune build @doc --root .",
"create-release": "sh ./scripts/release.sh"
},
"homepage": "https://github.com/bryphe/revery#readme",
"esy": {
Expand Down
5 changes: 5 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Set path
RELEASE_PATH="$(pwd)/_release"
mkdir -p $RELEASE_PATH

cp $cur__bin/* $RELEASE_PATH

0 comments on commit e14abb3

Please sign in to comment.