diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..743eaca --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,5 @@ +**NOTICE TO CONTRIBUTORS** + +This repository is not actively monitored and any pull requests made to this repository will be closed/ignored. + +Please submit the pull request to [edgio-docs/edgio-examples](https://github.com/edgio-docs/edgio-examples) instead. diff --git a/.github/workflows/edgio.yml b/.github/workflows/edgio.yml new file mode 100644 index 0000000..6dcabdc --- /dev/null +++ b/.github/workflows/edgio.yml @@ -0,0 +1,18 @@ +name: Deploy to Edgio + +on: + workflow_dispatch: + push: + +jobs: + deploy-to-edgio: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: if [ -f yarn.lock ]; then yarn install; else npm ci; fi + - run: if [ -f yarn.lock ]; then yarn edgio:deploy -- --token=$EDGIO_DEPLOY_TOKEN; else npm run edgio:deploy -- --token=$EDGIO_DEPLOY_TOKEN; fi + env: + EDGIO_DEPLOY_TOKEN: ${{secrets.EDGIO_DEPLOY_TOKEN}}