forked from MidnightCommander/mc
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.08 KB
/
update-sources.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
42
43
44
45
46
47
48
name: update-sources
on:
push:
branches:
- master
jobs:
update-sources:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install GNU Global
run: sudo apt-get install -y global exuberant-ctags python3-pygments
- name: Checkout source repo
uses: actions/checkout@v4
with:
repository: MidnightCommander/source
path: HTML
ref: gh-pages
ssh-key: ${{ secrets.SOURCE_DEPLOY_KEY }}
- name: Create sources index
run: |
pushd HTML
git rm -rf *
popd
gtags
htags --suggest -t "Welcome to the Midnight Commander source tour!"
./maint/htagsfix
- name: Deploy to GitHub
run: |
cd HTML
touch .nojekyll
echo "source.midnight-commander.org" > CNAME
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git add .
git commit -m "Deploy to GitHub Pages"
git push --force-with-lease