Skip to content

Commit

Permalink
set ACTIONS_ALLOW_UNSECURE_COMMANDS: true
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudz committed Aug 13, 2021
1 parent 4d7a3f3 commit e5527b2
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions .github/workflows/main-ci.yml
Expand Up @@ -9,6 +9,33 @@ on:
- cron: '0 0 * * 0'

jobs:
build-deploy-docs:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
working-directory: ./DOCUMENTATION
steps:
- name: Checkout Source Code
uses: actions/checkout@v2

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.1.0
with:
hugo-version: '0.20.2'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

- name: Build Hugo Site
run: hugo --minify

- name: Deploy Hugo Site to Guthub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages

build-php:
# Don't trigger on schedule event when in a fork
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository == 'laradock/laradock')
Expand Down Expand Up @@ -60,28 +87,3 @@ jobs:
sed -i -- 's/=false/=true/g' .env
sed -i -- 's/CHANGE_SOURCE=true/CHANGE_SOURCE=false/g' .env
docker-compose build ${{ matrix.service }}
build-deploy-docs:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
defaults:
run:
working-directory: ./DOCUMENTATION
steps:
- name: Checkout Source Code
uses: actions/checkout@v2

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.1.0
with:
hugo-version: '0.20.2'

- name: Build Hugo Site
run: hugo --minify

- name: Deploy Hugo Site to Guthub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages

0 comments on commit e5527b2

Please sign in to comment.