Clear cache and Deploy #1483
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: Clear cache and Deploy | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' | |
| push: | |
| workflow_dispatch: | |
| concurrency: regenerate | |
| jobs: | |
| generate: | |
| name: Regenerate PluginMaster | |
| runs-on: windows-latest | |
| steps: | |
| - name: Clear Web Services cache | |
| run: curl -X POST --fail https://aonyx.ffxiv.wang/Plugin/ClearCache?key=$env:CACHE_CLEAR_KEY | |
| env: | |
| CACHE_CLEAR_KEY: ${{ secrets.CACHE_CLEAR_KEY }} | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Remove .git directory | |
| run: rm -rf .git | |
| - uses: jakejarvis/s3-sync-action@master | |
| with: | |
| args: --acl public-read --follow-symlinks --delete | |
| env: | |
| AWS_S3_BUCKET: ${{ vars.AWS_S3_BUCKET }} | |
| AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| AWS_S3_ENDPOINT: ${{ vars.AWS_S3_ENDPOINT }} |