OSDN Git Service

Regular updates
[twpd/master.git] / .github / workflows / deploy.yml
index 891c4de..74a3c06 100644 (file)
@@ -9,6 +9,16 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
+      - name: "Notes (read me) ðŸ“–"
+        run: |
+          # About this workflow
+          # -------------------
+          #
+          # This workflow generates GitHub pages, but IT IS NOT USED. It is
+          # only generated as an emergency fallback in case Netlify goes down.
+          #
+          # ðŸ˜Š
+
       - uses: actions/checkout@v2
         with:
           persist-credentials: false
@@ -52,9 +62,22 @@ jobs:
 
       - run: yarn build
 
-      - name: Deploy to gh-pages
+      - name: "Deploy to gh-pages ðŸš€"
         uses: JamesIves/github-pages-deploy-action@releases/v3
         with:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           BRANCH: gh-pages
           FOLDER: _site
+
+      - name: "Deploy to mirror ðŸš€"
+        uses: JamesIves/github-pages-deploy-action@releases/v3
+        with:
+          ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
+          REPOSITORY_NAME: rstacruz/devhints-mirror
+          BRANCH: gh-pages
+          FOLDER: _site
+
+      - name: "Notify Slack ðŸ“¢"
+        uses: rtCamp/action-slack-notify@v2.0.2
+        env:
+          SLACK_WEBHOOK: ${{ secrets.SLACK_DEPLOY_WEBHOOK_URL }}