Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yxnan committed May 19, 2023
1 parent 2d72190 commit 7322ef9
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened]
push:
branches: [master]
schedule:
- cron: '0 8 * * FRI' # At 08:00 on Friday.

jobs:
generate_rpg_list:
name: Generate RPG List
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: sudo apt install -y curl jq
- shell: bash
env:
API_KEY: ${{ secrets.api_key }}
run: ./build-rpglist.sh "$API_KEY"

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: rpglist
path: rpglist.json

0 comments on commit 7322ef9

Please sign in to comment.