添加意式香肠北非蛋、澳门湿版免治牛肉饭、韩国麻药鸡蛋、牛油果拉西的做法 (#1764) #749
This file contains hidden or 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: Continuous Deployment | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build-readme-file: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout, install tools.. | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '22' | |
| cache: 'npm' | |
| - run: npm install | |
| - run: npm run build | |
| - run: npm run lint | |
| # Save files. | |
| - uses: stefanzweifel/git-auto-commit-action@v7 | |
| with: | |
| commit_message: '[ci skip] Automatic file changes/fix' | |
| branch: 'master' | |
| file_pattern: ':/*.*' | |
| commit_user_name: github-actions[bot] | |
| commit_user_email: github-actions[bot]@users.noreply.github.com | |
| commit_author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> | |
| build-docker-image: | |
| needs: build-readme-file | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout, install tools.. | |
| - uses: actions/checkout@v6 | |
| with: | |
| lfs: true | |
| fetch-depth: 0 | |
| # Use docker to build current directory ./Dockfile | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push the Docker image | |
| run: | | |
| docker build . --tag ghcr.io/anduin2017/how-to-cook:latest | |
| docker push ghcr.io/anduin2017/how-to-cook:latest |