-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (27 loc) · 899 Bytes
/
build.yml
File metadata and controls
32 lines (27 loc) · 899 Bytes
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
name: build repo
on:
push:
branches: [ master ]
jobs:
builds:
name: build repo
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build repo
run: |
echo "$GPG_KEY" > ./key.asc
./repogen-linux-64bit --generate-web --generate-contents ./key.asc ./packages ./build
cp ./index.html ./build
shopt -s globstar
cat metrika.html | tee -a ./build/**/*.html
env:
GPG_KEY: ${{ secrets.GPG_KEY }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch