diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index e88317aea..33127acf9 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -14,40 +14,3 @@ jobs: target-repo: 'mdn/interactive-examples' secrets: GH_TOKEN: ${{ secrets.GH_TOKEN }} - - deploy: - runs-on: ubuntu-latest - needs: - - publish-release - steps: - - name: Checkout - if: needs.publish-release.outputs.release_created - uses: actions/checkout@v4 - - - name: Setup Node.js environment - if: needs.publish-release.outputs.release_created - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm - - - name: Install all npm packages - if: needs.publish-release.outputs.release_created - run: npm ci - - - name: Build all - if: needs.publish-release.outputs.release_created - run: npm run build - - - name: Deploy pages - if: needs.publish-release.outputs.release_created - run: | - git init - git config user.name "schalkneethling" - git config user.email "sneethling@mozilla.com" - git checkout -b prod - git add . - git commit --allow-empty -m "Deploying latest generated pages" - git remote add mdn "https://$GITHUB_TOKEN@github.com/mdn/interactive-examples.git" - # Eat output so it doesn't spit out the sensitive GITHUB_TOKEN if something goes wrong: - git push -q -f mdn prod > /dev/null 2>&1