Skip to content

Commit

Permalink
Caching APT packages in GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 10, 2025
1 parent 4009e77 commit a19599c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/asset-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
paths:
- "assets/**"
- "src/txt/readme.txt"
env:
cache-version: 1
jobs:
deploy:
name: "Upload assets & readme to wordpress.org"
Expand All @@ -18,15 +20,16 @@ jobs:
assets
src/txt/readme.txt
- name: "Install SVN"
uses: awalsh128/[email protected]
with:
packages: subversion
version: ${{ env.cache-version }}

- name: "Move readme to root"
run: |
mv src/txt/readme.txt readme.txt
- name: Install SVN
run: |
sudo apt-get update
sudo apt-get install subversion
- name: WordPress Deploy
id: deploy
uses: 10up/[email protected]
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- name: Install SVN
run: |
sudo apt-get update
sudo apt-get install subversion
- name: "Install SVN"
uses: awalsh128/[email protected]
with:
packages: subversion
version: ${{ env.cache-version }}

- name: "Download artifact"
uses: actions/download-artifact@v4
Expand Down

0 comments on commit a19599c

Please sign in to comment.