Merge pull request #121 from Xeophon/main #112
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: publish-packages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-packages: | |
concurrency: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: "Install python dependencies" | |
run: "pip install pyyaml" | |
- name: "Quality check" | |
run: "python .github/scripts/validate/main.py" | |
- name: "Publish packages" | |
run: "python .github/scripts/publish_packages.py" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PUBLISH: "true" | |
- name: "Setup SSH deploy key" | |
uses: webfactory/ssh-agent@fc49353b67b2b7c1e0e6a600572d01a69f2672dd | |
with: | |
ssh-private-key: ${{ secrets.HUB_FRONTEND_DEPLOY_KEY }} | |
- name: "Push update on hub-frontend" | |
run: | | |
git config --global user.name "Espanso Hub Bot" | |
git config --global user.email "[email protected]" | |
git clone [email protected]:espanso/hub-frontend.git | |
cd hub-frontend | |
git rev-parse --verify HEAD > current_hub_sha.txt | |
git add current_hub_sha.txt | |
git commit -m "chore(misc): auto deploy from HUB CI" | |
git push |