Update build-all.sh #32
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- gh-actions2 | |
pull_request: | |
branches: | |
- gh-actions2 | |
env: | |
GPGKEY: ${{ secrets.GPGKEY }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install Dependencies! | |
run: | | |
set -x | |
cd $GITHUB_WORKSPACE | |
cat gpg.key.enc | base64 -d > gpg.key.env.bin | |
openssl aes-256-cbc -d -in gpg.key.env.bin -out gpg.key -k $GPGKEY | |
gpg --import gpg.pub | |
gpg --allow-secret-key-import --import gpg.key | |
gpg --list-keys | |
sudo apt-get -y install reprepro | |
mkdir mesh-deb | |
cd mesh-deb | |
git clone https://github.com/tomeshnet/mesh-packages.git -b gh-pages . | |
cd .. | |
cp README.md mesh-deb | |
cp -r repos mesh-deb/repos | |
- name: Build All | |
run: | | |
set -x | |
pwd | |
bash ./build-all.sh | |
- name: Include Deb Packages | |
run: | | |
REPREPRO_BASE_DIR="mesh-deb/repos/apt/debian" reprepro includedeb stretch packages/*.deb || true | |
- name: Install apindex | |
run: | | |
wget https://github.com/libthinkpad/apindex/archive/2.2.tar.gz | |
tar xvf 2.2.tar.gz | |
cd apindex-2.2 | |
cmake . -DCMAKE_INSTALL_PREFIX=/usr | |
sudo make install | |
cd .. | |
- name: LS | |
run: | | |
ls -la | |
pwd | |
- name: Generate apindex | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git fetch origin gh-pages:gh-pages | |
git checkout gh-pages | |
apindex mesh-deb/repos | |
rm -fr repos | |
mv mesh-deb/repos ./ | |
git add repos | |
git commit -m "Automated commit from GitHub Action" | |
git push origin HEAD |