Merge pull request #3 from geographika/stac #48
This file contains hidden or 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: Deploy application ⚙️ | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'workshop/exercises/app/**' | |
| - '.github/workflows/deploy.app.yml' | |
| defaults: | |
| run: | |
| working-directory: workshop/exercises/app | |
| jobs: | |
| build: | |
| name: Build and Deploy JavaScript application | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Build website | |
| run: | | |
| npm install | |
| npm run build | |
| - name: Deploy 📦 | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| deploy_key: ${{ secrets.PRIVATE_KEY }} | |
| publish_dir: ./workshop/exercises/app/dist | |
| publish_branch: gh-pages | |
| # deploy to https://mapserver.github.io/getting-started-with-mapserver-demo/ | |
| external_repository: mapserver/getting-started-with-mapserver-demo |