Update ghcr.io/cn-docker/cspell Docker tag to v10 (#108) #103
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 to Development Environment | |
| concurrency: development | |
| on: | |
| # Runs on push to main branch | |
| push: | |
| branches: [main] | |
| env: | |
| ENV: development | |
| TARGET_REPO_NAME: dev-environment | |
| jobs: | |
| spell-checker: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/cn-docker/cspell:10.0.0 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: CSpell English | |
| run: task spell-check | |
| build: | |
| needs: spell-checker | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/cn-docker/hugo:v0.159.2 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Build with Hugo | |
| run: task build ENV=development | |
| - name: Upload the built site | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: "site-built-${{ env.TARGET_REPO_NAME }}" | |
| path: public | |
| retention-days: 1 | |
| publish: | |
| needs: build | |
| environment: development | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download the built site | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: "site-built-${{ env.TARGET_REPO_NAME }}" | |
| path: public | |
| - name: Publish site | |
| uses: cpina/github-action-push-to-another-repository@v1.7.3 | |
| env: | |
| SSH_DEPLOY_KEY: ${{ secrets.SSH_DEV_DEPLOY_KEY }} | |
| with: | |
| source-directory: ./public | |
| destination-github-username: learn-software-engineering | |
| destination-repository-name: ${{ env.TARGET_REPO_NAME }} | |
| target-branch: main | |
| target-directory: docs | |
| commit-message: Publish revision ${{ github.sha }} | |
| user-email: learn.software.eng@gmail.com |