ci: Upgrade dependencies and pipeline #6
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 | |
| on: | |
| push: { branches: [ main ] } | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| abyss-dev: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: "0.148.2" | |
| extended: true | |
| - name: Hugo Build abyss.dev | |
| run: hugo --minify --environment abyss.dev | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| deploy_key: ${{ secrets.DEPLOY_ABYSS_DEV }} | |
| external_repository: abyss/deployed-abyss.dev | |
| publish_dir: ./public | |
| user_name: abyss | |
| user_email: abyss@users.noreply.github.com | |
| publish_branch: main | |
| cname: abyss.dev | |
| cwr-io: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Git checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: "0.148.2" | |
| extended: true | |
| - name: Hugo Build cwr.io | |
| run: hugo --minify --environment cwr.io | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| deploy_key: ${{ secrets.DEPLOY_CWR_IO }} | |
| external_repository: abyss/deployed-cwr.io | |
| publish_dir: ./public | |
| user_name: abyss | |
| user_email: abyss@users.noreply.github.com | |
| publish_branch: main | |
| cname: cwr.io |