1
0
Fork 0
mirror of https://github.com/NeoCloud/NeoNetwork synced 2024-12-01 11:20:40 +08:00
NeoNetwork/.github/workflows/roa.yml

41 lines
861 B
YAML
Raw Normal View History

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
if: "github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')"
2024-09-19 10:40:28 +08:00
runs-on: ubuntu-22.04
2020-05-01 15:06:14 +08:00
steps:
2024-09-19 10:40:28 +08:00
- uses: actions/checkout@v4
2020-07-21 00:34:05 +08:00
2024-09-19 10:40:28 +08:00
- uses: actions/checkout@v4
2020-07-21 00:34:05 +08:00
with:
2020-07-26 19:33:30 +08:00
path: generated
2020-07-26 19:30:54 +08:00
ssh-key: ${{ secrets.DEPLOY_KEY }}
2020-07-21 00:34:05 +08:00
repository: NeoCloud/NeoNetwork-ROA
2020-05-01 15:06:14 +08:00
2024-09-19 10:40:28 +08:00
- uses: actions/setup-python@v5
2020-07-21 01:57:29 +08:00
with:
2020-07-23 16:54:34 +08:00
python-version: 3.x
architecture: x64
2020-05-01 15:06:14 +08:00
2020-08-29 23:40:10 +08:00
- run: pip install -r scripts/requirements.txt
2020-07-21 10:35:53 +08:00
2020-08-29 23:40:10 +08:00
- run: scripts/generate-roa.sh
2020-05-01 15:06:14 +08:00
2020-07-26 20:54:31 +08:00
- run: git -C generated diff README.md
2020-07-26 19:37:09 +08:00
2020-08-29 23:40:10 +08:00
- run: scripts/push-to-roa.sh
2020-07-26 19:37:09 +08:00
2024-09-19 10:40:28 +08:00
- uses: actions/upload-artifact@v4
2020-07-26 19:37:09 +08:00
with:
name: generated
path: generated