Merge pull request #60 from PRO100BYTE/dependabot/npm_and_yarn/crypto… #45
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: Build and Deploy | |
on: | |
push: | |
branches: [ "master" ] | |
workflow_dispatch: | |
env: | |
GENERATE_SOURCEMAP: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.PUBLISH_TOKEN }} | |
- run : npm i | |
shell: bash | |
- run : npm ci | |
shell: bash | |
- run : npm run build | |
shell: bash | |
- run : git config user.name github-actions | |
shell: bash | |
- run : git config user.email [email protected] | |
shell: bash | |
- run : git --work-tree build add --all | |
shell: bash | |
- run : git remote set-url origin https://x-access-token:${{ secrets.PUBLISH_TOKEN }}@github.com/${{ github.repository }} | |
shell: bash | |
- run : git commit -m "Automatic Build and Deploy run by GitHub Actions" | |
shell: bash | |
- run : git push origin HEAD:gh-pages --force | |
shell: bash |