2020-07-21 00:22:03 +08:00
|
|
|
name: Generator ROA
|
2020-05-01 15:06:14 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-05-23 19:00:02 +08:00
|
|
|
branches: [master]
|
2020-05-01 15:45:25 +08:00
|
|
|
schedule:
|
2020-05-23 19:00:02 +08:00
|
|
|
- cron: "0 6 * * 1"
|
2020-05-01 15:06:14 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Generate ROA
|
2020-05-12 11:12:00 +08:00
|
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
2020-06-04 11:53:59 +08:00
|
|
|
runs-on: ubuntu-20.04
|
2020-05-01 15:06:14 +08:00
|
|
|
|
|
|
|
steps:
|
2020-07-21 00:34:05 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2020-07-21 01:54:56 +08:00
|
|
|
fetch-depth: 0
|
2020-07-21 00:34:05 +08:00
|
|
|
repository: NeoCloud/NeoNetwork-ROA
|
|
|
|
path: generated
|
2020-05-01 15:06:14 +08:00
|
|
|
|
2020-07-21 01:57:29 +08:00
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: "3.x"
|
|
|
|
architecture: "x64"
|
2020-05-01 15:06:14 +08:00
|
|
|
|
2020-07-21 10:35:53 +08:00
|
|
|
- run: pip install -r .scripts/requirements.txt
|
|
|
|
|
2020-07-21 01:58:59 +08:00
|
|
|
- run: .scripts/generate-roa.sh
|
2020-05-01 15:06:14 +08:00
|
|
|
|
2020-07-21 01:58:59 +08:00
|
|
|
- run: .scripts/push-to-roa.sh
|
2020-07-21 00:40:22 +08:00
|
|
|
env:
|
|
|
|
SSHPRIVKEY: ${{ secrets.KEY }}
|