├── .github └── workflows │ └── auto-pull.yaml ├── app.json ├── heroku-cli.sh └── readme.md /.github/workflows/auto-pull.yaml: -------------------------------------------------------------------------------- 1 | name: auto-pull 2 | on: 3 | push: 4 | branches: 5 | - action 6 | pull_request: 7 | branches: 8 | - action 9 | schedule: 10 | - cron: '0 0 1 * *' 11 | 12 | jobs: 13 | pull: 14 | runs-on: ubuntu-latest 15 | steps: 16 | - uses: actions/checkout@v2 17 | - name: get latest stable to main 18 | run: | 19 | git push origin action:main -f 20 | git fetch --all 21 | git switch main 22 | git clone https://github.com/miniflux/v2.git; cd v2 23 | git checkout $(git describe --tags --abbrev=0) 24 | rm -rf .git README.md; mv * ..; cd ..; rm -rf v2 25 | - name: push 26 | run: | 27 | git config user.name github-actions 28 | git config user.email github-actions@github.com 29 | git add . 30 | git commit -m 'auto pull' 31 | git push -f origin main 32 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Miniflux", 3 | "description": "Minimalist and opinionated feed reader", 4 | "repository": "https://github.com/miniflux/v2", 5 | "logo": "https://miniflux.app/favicon.ico", 6 | "addons": ["heroku-postgresql:hobby-dev"], 7 | "env": { 8 | "ADMIN_USERNAME": "admin", 9 | "ADMIN_PASSWORD": "test123", 10 | "CREATE_ADMIN": "1", 11 | "RUN_MIGRATIONS": "1", 12 | "CLEANUP_ARCHIVE_READ_DAYS": "7", 13 | "CLEANUP_ARCHIVE_UNREAD_DAYS": "30" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /heroku-cli.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | heroku apps:create 4 | heroku addons:create heroku-postgresql:hobby-dev 5 | heroku config:set RUN_MIGRATIONS=1 6 | heroku config:set CREATE_ADMIN=1 7 | heroku config:set ADMIN_USERNAME=admin 8 | heroku config:set ADMIN_PASSWORD=test123 9 | git push heroku main 10 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | ## deploy 2 | 3 | 1. switch to [main branch](../../tree/main) 4 | 2. deploy with [heroku button](https://heroku.com/deploy) 5 | 6 | ## auto update 7 | 8 | 1. deploy app as above 9 | 2. **fork** this repo 10 | 3. enable [github action](../../actions) 11 | 4. go to [heroku dashboard](https://dashboard.heroku.com/apps), then choose your app 12 | 5. set **deployment method** to **github** 13 | 6. select your repo, **main** branch 14 | 7. click **enable automatic deploy** 15 | --------------------------------------------------------------------------------