Specifiy build permissions to allow dependabot PRs to run checks (#228) #11
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
| # This workflow will build and deploy the develop branch to the staging environment whenever there's a new push to develop | |
| name: Deploy Staging | |
| on: | |
| push: | |
| branches: | |
| - 'develop' | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/build.yaml | |
| deploy-staging: | |
| name: Deploy Staging | |
| runs-on: ubuntu-latest | |
| environment: staging | |
| needs: build | |
| if: ${{ needs.build.outputs.tests == 'success' && needs.build.outputs.coverage == 'success' }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Deploy staging | |
| uses: ./.github/actions/deploy-to-gh-pages-action | |
| with: | |
| node-version: 22.16.x | |
| build-href: 'https://equalitytime.github.io/teststaging/' | |
| additional-build-args: '--configuration=staging' | |
| ghpages-repo: 'eQualityTime/teststaging' | |
| token: ${{ secrets.STAGINGDEPLOYMENT }} | |