mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
use github actions instead of travis (#3290)
* use github actions instead of travis * add name
This commit is contained in:
parent
0eb22a0c87
commit
28014a53f1
31
.github/workflows/ci.yml
vendored
Normal file
31
.github/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Use Node.js
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12.x'
|
||||||
|
- name: Run npm steps
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run eslint
|
||||||
|
npm run abaplint
|
||||||
|
npm run merge
|
||||||
|
- name: deploy-merged-build
|
||||||
|
if: github.ref == 'refs/heads/master' && github.repository == 'larshp/abapGit'
|
||||||
|
env:
|
||||||
|
GITHUB_API_KEY: ${{ secrets.MY_TOKEN }}
|
||||||
|
run: ./ci/deploy-merged-build.sh
|
||||||
|
- name: deploy-release-tag
|
||||||
|
if: github.ref == 'refs/heads/master' && github.repository == 'larshp/abapGit'
|
||||||
|
env:
|
||||||
|
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: ./ci/deploy-release-tag.sh
|
24
.travis.yml
24
.travis.yml
|
@ -1,24 +0,0 @@
|
||||||
language: node_js
|
|
||||||
node_js:
|
|
||||||
- "10"
|
|
||||||
notifications:
|
|
||||||
email: false
|
|
||||||
script:
|
|
||||||
- npm run eslint
|
|
||||||
- npm run abaplint
|
|
||||||
deploy:
|
|
||||||
- provider: script
|
|
||||||
script: ./ci/deploy-merged-build.sh
|
|
||||||
skip_cleanup: true
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
tags: false
|
|
||||||
- provider: script
|
|
||||||
script: ./ci/deploy-release-tag.sh
|
|
||||||
skip_cleanup: true
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
tags: false
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
secure: "JEKitZ+1to7pt4/lLcWJ0mtWuCRFxEBbps9hEFtHrenxBZR0dSekrLkhXBm9qRLJ6b0QLdYV0855/BiZlvOWuecB5kujbYLoCClx7+DWFszLQKgLf9UPbBoqkoLhvAtpGbAx7aMuBrqFnAD4ZBjybjEDJ5SHnxsWfu7AA2YrtPOUZvFZLqdP4muhwfVuYv+1CRZNJMZHtR4lw1R7kVQggaQmD04iMP/NKQuqNyjEC13zUxDLv5tskDAvl3OrPA3Ybx7Z0GM6piA+EkUoXtc3qnpe7e7j0IHBWpLwOjBOju4n1gMdZ13q1UzoLLsJV17jrg8tSoWw/F/Yqlo50qdRAsg6RCX4k5UpIP7mttStb9iT2pZlfwIAWHQF6aN67ic8F/AuPquMHKEgu/qfj1NK+6lfX0OHM6ovtAnNOozkSUikf7JxMeTlZLLOk+ZSTIYbxDsojMra8jeYmLtOLeFRu485fooXPt0n0aAzHDNuq7xQejvWZ0TGgxytc+A5b5y9YTsLSTZrQZmnxPweSgDSfLPY5HXK51nzEYGSP0tP4BlPAxysAsFoeLgr4oiham1ZxKfCNs7g5Cjc6Zbo1Zuq4Iza4HFl57I96QgyjFLgyFTdzfK6HJvUyIb/+fLK2RfCy0QbYboHej2Ki111I5UjkYITd+nyzmYiX9clJqSBeww="
|
|
|
@ -11,8 +11,8 @@ cd ../build
|
||||||
|
|
||||||
# Commit
|
# Commit
|
||||||
git status
|
git status
|
||||||
git config user.email "builds@travis-ci.com"
|
git config user.email "ci@abapgit.org"
|
||||||
git config user.name "Travis CI"
|
git config user.name "CI"
|
||||||
git add zabapgit.abap
|
git add zabapgit.abap
|
||||||
git commit -m "Travis build $TRAVIS_BUILD_NUMBER" || exit 1
|
git commit -m "CI build $TRAVIS_BUILD_NUMBER" || exit 1
|
||||||
git push -q https://$GITHUB_API_KEY@github.com/abapGit/build.git > /dev/null 2>&1
|
git push -q https://$GITHUB_API_KEY@github.com/abapGit/build.git > /dev/null 2>&1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user