Skip to content

Commit

Permalink
Update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
queengooborg authored Feb 28, 2024
1 parent dff6bbe commit 62d1cc6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
uses: EndBug/version-check@v2
with:
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Tag new release
if: steps.check.outputs.changed == 'true'
- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Tag new release
if: steps.check.outputs.changed == 'true'
run: |
git tag v${{steps.check.outputs.version}}
git push origin v${{steps.check.outputs.version}}
- name: Deploy to Heroku
Expand All @@ -42,21 +44,23 @@ jobs:
repository: openwebdocs/mdn-bcd-results
path: mdn-bcd-results
token: ${{ secrets.GOOBORG_BOT_GH_TOKEN }}
- name: Remove old results
if: steps.check.outputs.changed == 'true'
run: |
git rm mdn-bcd-results/*.json
git commit -m "Remove old results"
- name: Run Selenium and collect results
if: steps.check.outputs.changed == 'true'
run: |
npm install -D typescript
npm install -D ts-node
rm mdn-bcd-results/*.json
RESULTS_DIR=mdn-bcd-results npm run selenium
env:
SECRETS_JSON: ${{secrets.SECRETS_JSON}}
- name: Submit all results to the results repo
if: steps.check.outputs.changed == 'true'
run: |
cd mdn-bcd-results
git config user.name "gooborgstudios-bot"
git config user.email "[email protected]"
git add *.json
git commit -m "Selenium v${{steps.check.outputs.version}} results"
git push origin main

0 comments on commit 62d1cc6

Please sign in to comment.