Updating readme to force a build #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
| name: Deploy Dev | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| SKPR_USERNAME: ${{ vars.SKPR_QA_USERNAME }} | |
| SKPR_PASSWORD: ${{ secrets.SKPR_QA_PASSWORD }} | |
| concurrency: | |
| group: deploy-dev | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇️ Checkout Code | |
| uses: actions/checkout@v6 | |
| - name: Setup skpr | |
| uses: skpr/setup-action@v1 | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| - name: Get version | |
| id: version | |
| run: | | |
| version=$(git rev-parse --short HEAD) | |
| echo "::notice:: Using version $version from git describe" | |
| echo "version=$version" >> $GITHUB_OUTPUT | |
| - name: 📦 Package | |
| run: skpr package ${{ steps.version.outputs.version }} | |
| - name: 🚀 Deploy | |
| run: skpr deploy dev ${{ steps.version.outputs.version }} | |
| - name: 🧹 Post-deploy | |
| run: skpr exec dev "drush updb -y" | |
| dast: | |
| runs-on: ubuntu-latest | |
| needs: deploy | |
| steps: | |
| - name: ⬇️ Checkout Code | |
| uses: actions/checkout@v6 | |
| - name: ZAP Scan | |
| uses: zaproxy/action-baseline@v0.15.0 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| allow_issue_writing: false | |
| target: https://dev.drupal.qa.skpr.dev/ | |
| fail_action: true |