-
Notifications
You must be signed in to change notification settings - Fork 75
36 lines (34 loc) · 1.12 KB
/
single-header.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2023 Bernhard Manfred Gruber
# SPDX-License-Identifier: MPL-2.0
name: Publish amalgamated alpaka.hpp to single-header
on:
push:
branches:
- develop
jobs:
single-header:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: clone single-header
run: |
git clone -b single-header --single-branch https://x-access-token:${{secrets.github_token}}@github.com/${{github.repository}}.git single-header
- name: create-single-header.sh
run: |
./script/create-single-header.sh
- name: commit
# run deployment only on the develop branch in the upstream repository
if: github.ref == 'refs/heads/develop' && github.repository_owner == 'alpaka-group'
run: |
set -x
cd single-header
if ! git diff --exit-code
then
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add include/alpaka/alpaka.hpp
git commit -m "Update alpaka.hpp"
git push origin single-header
else
echo "No changes to commit"
fi