Skip to content

Commit

Permalink
ci: fix access to enginiro repos
Browse files Browse the repository at this point in the history
  • Loading branch information
jaburjak committed Oct 9, 2024
1 parent 533f876 commit 86c599b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
- uses: actions/setup-node@v3
php-version: '8.1'
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
- run: npm install
- run: ./build.sh
env:
GH_ENGINIRO_TOKEN: ${{ secrets.GH_ENGINIRO_TOKEN }}
- run: touch build/site/.nojekyll
- uses: actions/upload-pages-artifact@v1
with:
Expand Down
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ while read -r repository; do
git pull
cd ../
else
if [ "$GH_ENGINIRO_TOKEN" != "" ]; then
repository="$(echo "$repository" | sed "s%git@github.com:enginiro/%https://enginiro:$GH_ENGINIRO_TOKEN@github.com/enginiro/%")"
fi

git clone --depth 1 "$repository" --branch "main" --single-branch
fi

Expand Down

0 comments on commit 86c599b

Please sign in to comment.