Merge pull request #279 from ffha/master #686
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generator ROA | |
on: | |
push: | |
branches: [master] | |
schedule: | |
- cron: "0 6 * * 1" | |
jobs: | |
build: | |
name: Generate ROA | |
if: "github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/checkout@v2 | |
with: | |
path: generated | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
repository: NeoCloud/NeoNetwork-ROA | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
architecture: x64 | |
- run: pip install -r scripts/requirements.txt | |
- run: scripts/generate-roa.sh | |
- run: git -C generated diff README.md | |
- run: scripts/push-to-roa.sh | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: generated | |
path: generated |