Removing bad pull request template #51
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 | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
cti_authoring_tool: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Dependencies | |
working-directory: ./src/cti_authoring_tool/ | |
run: npm ci | |
- name: Build CTI Authoring Tool | |
working-directory: ./src/cti_authoring_tool/ | |
env: | |
# Workaround for node.js bug: https://github.com/webpack/webpack/issues/14532 | |
NODE_OPTIONS: "--openssl-legacy-provider" | |
VUE_APP_GOOG_ANALYTICS_TAG: "G-67S8JX925T" | |
run: npm run build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cti_authoring_tool | |
path: src/cti_authoring_tool/dist/ | |
github_pages: | |
# This job only runs when committing or merging to main branch. | |
if: github.ref_name == 'main' | |
needs: cti_authoring_tool | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Setup Pages | |
uses: actions/configure-pages@v2 | |
- name: Download HTML docs | |
uses: actions/download-artifact@v3 | |
with: | |
name: cti_authoring_tool | |
path: cti_authoring_tool | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ./cti_authoring_tool | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |