build(deps): bump actions/cache from 3 to 4 #233
Workflow file for this run
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
--- | |
name: ci | |
on: | |
- push | |
- pull_request_target | |
permissions: write-all | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }} | |
B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }} | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
lfs: true | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
**/public | |
**/resources | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }} | |
- name: Install Node | |
uses: actions/setup-node@v4 | |
- name: Install Task | |
uses: arduino/setup-task@v2 | |
- name: Build | |
run: task ci | |
- name: Deploy to Netlify (dev) | |
uses: nwtgck/[email protected] | |
id: netlify | |
with: | |
publish-dir: './public' | |
production-deploy: false | |
github-deployment-environment: 'dev' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: "Deploy from GitHub Actions" | |
enable-pull-request-comment: false | |
enable-commit-comment: true | |
overwrites-pull-request-comment: true | |
timeout-minutes: 1 | |
- name: Audit URLs using Lighthouse | |
uses: treosh/[email protected] | |
with: | |
urls: | | |
${{ steps.netlify.outputs.deploy-url }} | |
${{ steps.netlify.outputs.deploy-url }}/blog/ | |
${{ steps.netlify.outputs.deploy-url }}/gallery/ | |
${{ steps.netlify.outputs.deploy-url }}/gallery/street-01-2020/ | |
budgetPath: ./.github/lighthouse/budget.json | |
uploadArtifacts: true | |
- name: Deploy to Netlify (prod) | |
if: github.ref == 'refs/heads/master' | |
uses: nwtgck/[email protected] | |
with: | |
publish-dir: './public' | |
production-deploy: true | |
github-deployment-environment: 'prod' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
deploy-message: "Deploy from GitHub Actions" | |
enable-pull-request-comment: false | |
enable-commit-comment: true | |
overwrites-pull-request-comment: true | |
timeout-minutes: 1 |