Revert "github-release: list 100 releases instead of 30" #309
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: Build | |
on: | |
push: | |
branches: [ 'master' ] | |
pull_request: | |
branches: [ '*' ] | |
workflow_dispatch: {} | |
schedule: | |
- cron: '30 23 1 * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 50 # the same value as Travis CI | |
- name: Run build script | |
run: | | |
python3 ./configure.py | |
make all | |
env: | |
COMMIT_FROM: ${{ github.event.before }} | |
COMMIT_TO: ${{ github.event.after }} | |
- name: Deploy | |
if: "github.ref == 'refs/heads/master' && github.repository == 'ustclug/ustcmirror-images'" | |
run: ./push.sh | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} |