-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!latest' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Pull sources | ||
uses: actions/checkout@v1 | ||
|
||
- name: Configure Node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
- name: Publish | ||
if: github.event.ref == 'refs/heads/master' | ||
run: | | ||
remote_branch=latest | ||
git checkout --orphan "$remote_branch" | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git remote rm origin || true | ||
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | ||
git remote add origin "$remote_repo" | ||
git add --all --force * | ||
COMMIT_MESSAGE="Automated deployment: $(date -u) $GITHUB_SHA" | ||
git commit -m "$COMMIT_MESSAGE" | true | ||
git push origin "$remote_branch" --force | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/package-lock.json | ||
/node_modules/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Boost Software License - Version 1.0 - August 17th, 2003 | ||
|
||
Permission is hereby granted, free of charge, to any person or organization | ||
obtaining a copy of the software and accompanying documentation covered by | ||
this license (the "Software") to use, reproduce, display, distribute, | ||
execute, and transmit the Software, and to prepare derivative works of the | ||
Software, and to permit third-parties to whom the Software is furnished to | ||
do so, all subject to the following: | ||
|
||
The copyright notices in the Software and this entire statement, including | ||
the above license grant, this restriction and the following disclaimer, | ||
must be included in all copies of the Software, in whole or in part, and | ||
all derivative works of the Software, unless such copies or derivative | ||
works are solely in the form of machine-executable object code generated by | ||
a source language processor. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT | ||
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE | ||
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
DEALINGS IN THE SOFTWARE. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
= run-cpt | ||
:toc: preamble | ||
|
||
[link=https://github.com/grisumbras/run-cpt/actions] | ||
image::https://github.com/grisumbras/run-cpt/workflows/Build/badge.svg?branch=master[Build status] | ||
|
||
____ | ||
GitHub Action that runs conan_package_tools | ||
____ | ||
|
||
== Usage | ||
Example usage: | ||
|
||
[source,yaml] | ||
---- | ||
uses: grisumbras/run-cpt@latest | ||
with: | ||
build-script: conan/build.py | ||
---- | ||
|
||
You can set environment variables that control Conan and CPT behaviour using | ||
`env` key: | ||
|
||
[source,yaml] | ||
---- | ||
- uses: grisumbras/run-cpt@latest | ||
env: | ||
CONAN_REMOTES: https://api.bintray.com/conan/bincrafters/public-conan | ||
---- | ||
|
||
Additionally, if `CONAN_USERNAME` is not specified, the first part of | ||
`GITHUB_REPOSITORY` (before slash) will be used. | ||
|
||
=== Inputs | ||
build-script:: | ||
Path to the build script. Given `build-script: x/y/z.py`, the action will run | ||
`python x/y/z.py`. `build.py` by default. | ||
install:: | ||
Install conan_package_tools before running the build script if the value is not | ||
`no`. If the value is `latest` install the latest version, otherwise install | ||
the version equal to that value. `latest` by default. | ||
|
||
== Maintainer | ||
Dmitry Arkhipov <[email protected]> | ||
|
||
== Contributing | ||
Patches welcome! | ||
|
||
== License | ||
link:LICENSE[BSL-1.0] (C) 2019 Dmitry Arkhipov |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: run-cpt | ||
author: Dmitry Arkhipov <[email protected]> | ||
description: GitHub Action that runs conan_package_tools | ||
branding: | ||
icon: package | ||
color: blue | ||
inputs: | ||
build-script: | ||
description: Path to the build script | ||
required: false | ||
default: build.py | ||
install: | ||
description: what version of conan_package_tools to install | ||
required: false | ||
default: latest | ||
runs: | ||
using: node12 | ||
main: main.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const core = require('@actions/core'); | ||
const run = require('./run').run; | ||
|
||
run().then( | ||
(resolve) => {}, | ||
(error) => { core.setFailed(error.message); }); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.