abapGit/.github/workflows/build.yml
Lars Hvam 89507dc971
actions: build and test, run on all pull_request events (#4940)
changes actions to run on all push and pull request events

been having trouble with actions not running, this might solve it, rolls back to old setup
2021-09-14 16:16:07 +02:00

51 lines
1.3 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@v2
with:
node-version: '14'
- name: Run npm steps
run: |
npm install
npm run eslint
npm run abaplint
npm run merge
npm run merge.ci
- name: build-merged-build
run: ./ci/build-merged-build.sh
- name: deploy-merged-build
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main' && github.repository == 'abapGit/abapGit'
with:
deploy_key: ${{ secrets.DEPLOY_ABAPGIT_BUILD }}
external_repository: abapGit/build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: main
publish_dir: ../build
- 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