Skip to content

Commit

Permalink
workflows: Add staging steps on issue_comment
Browse files Browse the repository at this point in the history
We need to execute few more staging-specific steps on issue_comment

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Jun 11, 2024
1 parent 4e83ee1 commit a8dda49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
lfs: true # Fetch Git LFS files
ref: refs/pull/${{ github.event.issue.number }}/head

- name: Checkout main branch
uses: actions/checkout@v4
if: github.event_name == 'workflow_dispatch'
Expand Down Expand Up @@ -65,15 +66,15 @@ jobs:
run: npm install --save-dev autoprefixer && npm install postcss-cli && npm install -D postcss && npm install -D postcss-preset-env && npm install -D bootstrap-sass

- name: Build staging
if: github.event.inputs.environment == 'staging'
if: github.event.inputs.environment == 'staging' || github.event_name == 'issue_comment'
run: cd kernelci.org;hugo --minify -D -F -b https://static.staging.kernelci.org/

- name: Build production
if: github.event.inputs.environment == 'production'
run: cd kernelci.org;hugo --minify -D -F -b https://kernelci.org/

- name: rsync staging deployment
if: github.event.inputs.environment == 'staging'
if: github.event.inputs.environment == 'staging' || github.event_name == 'issue_comment'
uses: burnett01/[email protected]
with:
switches: -avzr --delete
Expand Down

0 comments on commit a8dda49

Please sign in to comment.