Skip to content

Commit

Permalink
chore(publish-release): remove deploy step (#2631)
Browse files Browse the repository at this point in the history
We now deploy using dedicated {stage,prod}-deploy workflows.
  • Loading branch information
caugner authored Oct 24, 2023
1 parent a76fcf8 commit 4840e41
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git checkout -b prod
git add .
git commit --allow-empty -m "Deploying latest generated pages"
git remote add mdn "https://[email protected]/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

0 comments on commit 4840e41

Please sign in to comment.