mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 2
|
|
- 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
|
|
npm run merge.ci
|
|
- name: deploy-merged-build
|
|
if: github.ref == 'refs/heads/main' && github.repository == 'abapGit/abapGit'
|
|
env:
|
|
GITHUB_API_KEY: ${{ secrets.MY_TOKEN }}
|
|
run: ./ci/deploy-merged-build.sh
|
|
- name: deploy-release-tag
|
|
if: github.ref == 'refs/heads/main' && github.repository == 'abapGit/abapGit'
|
|
env:
|
|
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }}
|
|
run: ./ci/deploy-release-tag.sh
|
|
- name: Upload build artifact
|
|
if: always()
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: zabapgit_standalone.abap
|
|
path: ./zabapgit.abap
|
|
retention-days: 7
|