-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(publish-release): remove deploy step (#2631)
We now deploy using dedicated {stage,prod}-deploy workflows.
- Loading branch information
Showing
1 changed file
with
0 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |