mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
parent
f264f33b7e
commit
3afc2fa1b5
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
|
@ -22,11 +22,18 @@ jobs:
|
|||
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'
|
||||
env:
|
||||
GITHUB_API_KEY: ${{ secrets.MY_TOKEN }}
|
||||
run: ./ci/deploy-merged-build.sh
|
||||
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:
|
||||
|
|
10
ci/build-merged-build.sh
Executable file
10
ci/build-merged-build.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Build merged
|
||||
npm run merge || exit 1
|
||||
wc -l ./zabapgit.abap
|
||||
|
||||
# Deploy artifacts
|
||||
git clone https://github.com/abapGit/build.git ../build
|
||||
cp zabapgit.abap ../build/zabapgit.abap
|
||||
cd ../build
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Build merged
|
||||
npm run merge || exit 1
|
||||
wc -l ./zabapgit.abap
|
||||
|
||||
# Deploy artifacts
|
||||
git clone https://github.com/abapGit/build.git ../build
|
||||
cp zabapgit.abap ../build/zabapgit.abap
|
||||
cd ../build
|
||||
|
||||
# Commit
|
||||
git status
|
||||
git config user.email "ci@abapgit.org"
|
||||
git config user.name "CI"
|
||||
git add zabapgit.abap
|
||||
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
|
Loading…
Reference in New Issue
Block a user