name: build-deploy
on:
push:
branches: [ production ]
workflow_dispatch:
jobs:
your-job-1:
runs-on: ubuntu-latest
name: 'build'
steps:
- name: Cache Build
id: cache-build
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/your-folder-to-cache
key: ${{ github.sha }}-your-cache-key
your-job-2:
runs-on: ubuntu-latest
name: 'deploy'
steps:
- uses: actions/cache/restore@v4
id: restore-build
with:
path: ${{ github.workspace }}/your-folder-to-cache
key: ${{ github.sha }}-your-cache-key
cleanup:
runs-on: ubuntu-latest
needs: ['your-job-1', 'your-job-2']
name: 'cache cleanup'
steps:
- uses: pulsiot/nuke-cache@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
cache-key: ${{ github.sha }}-your-cache-key
-
Notifications
You must be signed in to change notification settings - Fork 0
pulsiot/nuke-cache
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Clone of adapttive/cache-delete action as it was not working for us
Resources
Stars
Watchers
Forks
Packages 0
No packages published