🚀 Update update manifests #66
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
name: Pre-Deploy Updates Server | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.DEPLOY_KEY }} | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Fetch and override deploy branch | |
run: | | |
git checkout main | |
git pull | |
git branch -D deploy || true | |
git checkout -b deploy | |
- name: Write redirects | |
run: | | |
python scripts/write_redirects.py | |
- name: Add confirm message | |
run: | | |
echo "Ready to deploy!" | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 🔖 Updated update server | |
commit_user_name: Zen Browser Robot | |
commit_user_email: [email protected] | |
branch: deploy | |
push_options: '--force' | |