name: build-deployon:
push:
branches: [ production ]workflow_dispatch:
jobs:
your-job-1:
runs-on: ubuntu-latestname: 'build'steps:
- name: Cache Buildid: cache-builduses: actions/cache/save@v3with:
path: ${{ github.workspace }}/your-folder-to-cachekey: ${{ github.sha }}-your-cache-keyyour-job-2:
runs-on: ubuntu-latestname: 'deploy'steps:
- uses: actions/cache/restore@v3id: restore-buildwith:
path: ${{ github.workspace }}/your-folder-to-cachekey: ${{ github.sha }}-your-cache-keycleanup:
runs-on: ubuntu-latestneeds: ['your-job-1', 'your-job-2']name: 'cache cleanup'steps:
- uses: adapttive/cache-deletewith:
github-token: ${{ secrets.ADMIN_GITHUB_TOKEN }}cache-key: ${{ github.sha }}-your-cache-key Uh oh!
There was an error while loading. Please reload this page.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneLatest commit
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|