mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
GitHub Actions now pushes to GitHub Pages
This commit is contained in:
parent
98d7f1481c
commit
aa09da0403
1 changed files with 9 additions and 7 deletions
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
|
@ -38,14 +38,16 @@ jobs:
|
||||||
- name: UI Tests
|
- name: UI Tests
|
||||||
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
run: xvfb-run --server-args="-screen 0 1200x800x24" npx grunt testui
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
if: success() && github.ref == 'refs/heads/master'
|
||||||
|
run: npx grunt copy:ghPages
|
||||||
|
uses: crazy-max/ghaction-github-pages@v2
|
||||||
|
with:
|
||||||
|
target_branch: gh-pages
|
||||||
|
build_dir: ./build/prod
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
# - name: grunt copy:ghPages
|
|
||||||
# - name: Deploy
|
|
||||||
# uses: peaceiris/actions-gh-pages@v3
|
|
||||||
# with:
|
|
||||||
# github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
# publish_dir: ./build/prod
|
|
||||||
# Once NPM_AUTH_TOKEN set up in repo, uncomment this
|
|
||||||
#- name: Deploy to NPM
|
#- name: Deploy to NPM
|
||||||
# run: |
|
# run: |
|
||||||
# npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
# npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue