COGNHACKER - LAB
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
889 B

  1. name: Optimize map and deploy
  2. on: [ push ]
  3. permissions:
  4. contents: write
  5. pages: write
  6. actions: write
  7. jobs:
  8. deploy:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout
  12. uses: actions/checkout@v3
  13. - uses: actions/setup-node@v3
  14. with:
  15. node-version: '16.x'
  16. registry-url: 'https://registry.npmjs.org'
  17. - name: "Install dependencies"
  18. run: npm install
  19. - name: "Build scripts"
  20. run: npm run build
  21. - name: Deploy
  22. uses: JamesIves/github-pages-deploy-action@releases/v3
  23. if: github.ref == 'refs/heads/master'
  24. with:
  25. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  26. BRANCH: gh-pages # The branch the action should deploy to.
  27. FOLDER: dist/ # The folder the action should deploy.
  28. BASE_BRANCH: master
  29. - name: Bash2
  30. run: |
  31. ls -al