-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2991 from skaut/apt-cache
Caching APT packages in GH actions
- Loading branch information
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ on: | |
paths: | ||
- "assets/**" | ||
- "src/txt/readme.txt" | ||
env: | ||
cache-version: 1 | ||
jobs: | ||
deploy: | ||
name: "Upload assets & readme to wordpress.org" | ||
|
@@ -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] | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|