-
Notifications
You must be signed in to change notification settings - Fork 142
41 lines (37 loc) · 1.24 KB
/
publish-packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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