forked from notBrad/bubo-rss
Compare commits
12 Commits
main
...
github-act
Author | SHA1 | Date | |
---|---|---|---|
|
b0741837d5 | ||
|
92a9012b7e | ||
|
6cf062e42d | ||
|
6a5dee1f41 | ||
|
987a0445f1 | ||
|
1b665ea9ba | ||
|
72062d5335 | ||
|
6bcb0ca5e1 | ||
|
e805fcc954 | ||
|
2c056603f0 | ||
|
33761d7e20 | ||
|
e4a26fef91 |
36
.github/workflows/publish.yml--example
vendored
Normal file
36
.github/workflows/publish.yml--example
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
name: Publish with GitHub Actions
|
||||||
|
|
||||||
|
# Uncommen the "on" block below to use
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
schedule:
|
||||||
|
# Run this script every 15 minutes
|
||||||
|
- cron: '*/15 * * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout master branch
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: master
|
||||||
|
- name: Setup Node.js and install dependencies
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 11.4.0
|
||||||
|
- run: npm install
|
||||||
|
- name: Run build and parse RSS feeds
|
||||||
|
- run: npm run build --if-present
|
||||||
|
- name: Commit latest build to ./output folder
|
||||||
|
uses: github-actions-x/commit@v2.3
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
push-branch: 'master'
|
||||||
|
commit-message: 'Published latest changes to RSS feeds'
|
||||||
|
force-add: 'true'
|
||||||
|
files: output/*
|
||||||
|
name: GitHub Action Bubo Bot
|
||||||
|
email: action@github.com
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
node_modules/*
|
node_modules/*
|
||||||
output/index.html
|
|
@ -1,4 +1,3 @@
|
|||||||
[build]
|
[build]
|
||||||
command = "npm run build"
|
|
||||||
publish = "output/"
|
publish = "output/"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user