.github/workflows/daily.yml #134
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
on: | |
# push: | |
schedule: | |
# every march 15th at 1am | |
- cron: '0 1 15 3 *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Copy packager configuration for CI | |
run: cp config.php.example config.php | |
- name: Setup PHP project | |
run: docker build -t yeswiki-build-repo . | |
- name: Generate packages list | |
run: | | |
docker run --rm -v $(pwd)/dist/:/var/www/html/repository/ yeswiki-build-repo \ | |
php index.php action=init | |
- name: Deploy on GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# ./dist is our local folder which got the artifacts back from the 'Generate packages list' step | |
publish_dir: ./dist/ |