Bump the angular group in /webui with 13 updates (#1405) #192
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: Publish Web UI | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'webui/**' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./webui | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.10.0' | |
- name: NPM Install | |
run: npm ci | |
- name: Angular Build | |
run: npm run build | |
- name: Clean up | |
run: pushd dist/webui && rm packagessniper_v2.json && rm README.md && cp index.html 404.html && popd | |
- name: Publish | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
publish_dir: ./webui/dist/webui | |
keep_files: true | |
external_repository: luxtorpeda-dev/luxtorpeda-dev.github.io | |
publish_branch: master |