Skip to content

Commit 364fcc3

Browse files
committed
Fix YAML syntax
1 parent e9e1069 commit 364fcc3

File tree

1 file changed

+71
-71
lines changed

1 file changed

+71
-71
lines changed

.github/workflows/package_code.yml

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
1-
# Licensed to the Apache Software Foundation (ASF) under one or more
2-
# contributor license agreements. See the NOTICE file distributed with
3-
# this work for additional information regarding copyright ownership.
4-
# The ASF licenses this file to You under the Apache License, Version 2.0
5-
# (the "License"); you may not use this file except in compliance with
6-
# the License. You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
name: Generate release files
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
name: Generate release files
1616

17-
on:
18-
workflow_dispatch:
19-
push:
20-
branches:
21-
- master
22-
pull_request:
23-
branches:
24-
- master
17+
on:
18+
workflow_dispatch:
19+
push:
20+
branches:
21+
- master
22+
pull_request:
23+
branches:
24+
- master
2525

26-
permissions: read-all
26+
permissions: read-all
2727

28-
jobs:
29-
job1:
30-
name: 'Package code for release'
31-
runs-on: ubuntu-latest
28+
jobs:
29+
job1:
30+
name: 'Package code for release'
31+
runs-on: ubuntu-latest
3232

33-
steps:
34-
- uses: actions/checkout@v4
35-
with:
36-
persist-credentials: false # do not persist auth token in the local git config
37-
path: clean-checkout
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
persist-credentials: false # do not persist auth token in the local git config
37+
path: clean-checkout
3838

39-
# Using `setup-java` as temporary workaround, since `crazy-max` is not authorized
40-
- name: Setup GPG
41-
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # 3.7.0
42-
with:
43-
distribution: temurin
44-
java-version: 17
45-
gpg-private-key: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
39+
# Using `setup-java` as temporary workaround, since `crazy-max` is not authorized
40+
- name: Setup GPG
41+
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # 3.7.0
42+
with:
43+
distribution: temurin
44+
java-version: 17
45+
gpg-private-key: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
4646

47-
# Consider using CPack when it supports a white-list for included files
48-
# - name: 'Install minimum dependencies'
49-
# run: |
50-
# sudo apt-get install -y libapr1-dev libaprutil1-dev
51-
#
52-
# - name: 'Create release files'
53-
# run: |
54-
# cmake -B package -S clean-checkout -DAPACHE_MAINTAINER=yes -DCPACK_PACKAGE_DIRECTORY=`pwd`
55-
# cmake --build package --target dist
56-
#
57-
- name: 'Create release files'
58-
run: |
59-
cd clean-checkout
60-
rm -r src/main/abi-symbols
61-
VERSION=`grep 'set(log4cxx_VER ' src/cmake/projectVersionDetails.cmake|sed -Ee 's/.*log4cxx_VER ([0-9]*)\.([0-9]*)\.([0-9]*).*/\1.\2.\3/'`
62-
tar -zcf "../apache-log4cxx-$VERSION.tar.gz" "--transform=s,^,apache-log4cxx-$VERSION/," INSTALL LICENSE NOTICE README.md CMakeLists.txt src liblog4cxx.pc.in liblog4cxx-qt.pc.in KEYS
63-
cd ..
64-
sha512sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha512"
65-
sha256sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha256"
66-
gpg --armor --detach-sign --yes --pinentry-mode error "apache-log4cxx-$VERSION.tar.gz"
67-
tar xf "apache-log4cxx-$VERSION.tar.gz"
68-
zip -rm "apache-log4cxx-$VERSION.zip" apache-log4cxx-$VERSION
69-
sha512sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha512"
70-
sha256sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha256"
71-
gpg --armor --detach-sign --yes --pinentry-mode error "apache-log4cxx-$VERSION.zip"
47+
# Consider using CPack when it supports a white-list for included files
48+
# - name: 'Install minimum dependencies'
49+
# run: |
50+
# sudo apt-get install -y libapr1-dev libaprutil1-dev
51+
#
52+
# - name: 'Create release files'
53+
# run: |
54+
# cmake -B package -S clean-checkout -DAPACHE_MAINTAINER=yes -DCPACK_PACKAGE_DIRECTORY=`pwd`
55+
# cmake --build package --target dist
56+
#
57+
- name: 'Create release files'
58+
run: |
59+
cd clean-checkout
60+
rm -r src/main/abi-symbols
61+
VERSION=`grep 'set(log4cxx_VER ' src/cmake/projectVersionDetails.cmake|sed -Ee 's/.*log4cxx_VER ([0-9]*)\.([0-9]*)\.([0-9]*).*/\1.\2.\3/'`
62+
tar -zcf "../apache-log4cxx-$VERSION.tar.gz" "--transform=s,^,apache-log4cxx-$VERSION/," INSTALL LICENSE NOTICE README.md CMakeLists.txt src liblog4cxx.pc.in liblog4cxx-qt.pc.in KEYS
63+
cd ..
64+
sha512sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha512"
65+
sha256sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha256"
66+
gpg --armor --detach-sign --yes --pinentry-mode error "apache-log4cxx-$VERSION.tar.gz"
67+
tar xf "apache-log4cxx-$VERSION.tar.gz"
68+
zip -rm "apache-log4cxx-$VERSION.zip" apache-log4cxx-$VERSION
69+
sha512sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha512"
70+
sha256sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha256"
71+
gpg --armor --detach-sign --yes --pinentry-mode error "apache-log4cxx-$VERSION.zip"
7272
73-
- uses: actions/upload-artifact@v4
74-
if: always()
75-
with:
76-
name: 'release_files'
77-
path: |
78-
apache-log4cxx-*
73+
- uses: actions/upload-artifact@v4
74+
if: always()
75+
with:
76+
name: 'release_files'
77+
path: |
78+
apache-log4cxx-*

0 commit comments

Comments
 (0)