Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(publish-release): remove deploy step #2631

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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