chore: improve test about creative culture #62
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: Deploy | |
| on: | |
| push: | |
| branches: [production, staging] | |
| pull_request: | |
| branches: [production, staging] | |
| jobs: | |
| deploy-staging: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/staging' | |
| environment: staging | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| ref: refs/heads/staging | |
| - uses: a7ul/tar-action@v1.1.0 | |
| with: | |
| command: c | |
| cwd: ./ | |
| files: ./ | |
| outPath: deploy.tar | |
| - name: Deploy WebServer to Caprover | |
| if: ${{ github.ref == 'refs/heads/staging' }} | |
| uses: caprover/deploy-from-github@v1.0.1 | |
| with: | |
| server: '${{ secrets.CAPROVER_SERVER }}' | |
| app: '${{ secrets.APP_NAME }}' | |
| token: '${{ secrets.APP_TOKEN }}' | |
| deploy-production: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/production' | |
| environment: production | |
| steps: | |
| - uses: actions/checkout@master | |
| with: | |
| ref: refs/heads/production | |
| - uses: a7ul/tar-action@v1.1.0 | |
| with: | |
| command: c | |
| cwd: ./ | |
| files: ./ | |
| outPath: deploy.tar | |
| - name: Deploy WebServer to Caprover | |
| if: ${{ github.ref == 'refs/heads/production' }} | |
| uses: caprover/deploy-from-github@v1.0.1 | |
| with: | |
| server: '${{ secrets.CAPROVER_SERVER }}' | |
| app: '${{ secrets.APP_NAME }}' | |
| token: '${{ secrets.APP_TOKEN }}' |