mirror of
https://github.com/JonasunderscoreJones/BingoGenerator.git
synced 2025-10-22 16:39:19 +02:00
This commit is contained in:
parent
704c368582
commit
e3c6e146ac
1 changed files with 46 additions and 0 deletions
46
.forgejo/workflows/build-sveltekit.yml
Normal file
46
.forgejo/workflows/build-sveltekit.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: build-sveltekit
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: checkout repository
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- name: setup node
|
||||
uses: https://github.com/actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
|
||||
- name: restore cached dependencies
|
||||
uses: https://code.forgejo.org/actions/cache/restore@v4
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
node_modules
|
||||
key: ${{ runner.os }}-SvelteKit
|
||||
|
||||
- name: install dependencies
|
||||
run: npm install --frozen-lockfile
|
||||
|
||||
- name: build project
|
||||
run: npm run build
|
||||
|
||||
- name: capture build artifacts
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: sveltekit-artifacts.zip
|
||||
path: |
|
||||
build/
|
||||
.svelte-kit/
|
||||
if-no-files-found: error
|
||||
|
||||
- name: cache downloaded dependencies
|
||||
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||
uses: https://code.forgejo.org/actions/cache/save@v4
|
||||
with:
|
||||
path: |
|
||||
~/.npm
|
||||
node_modules
|
||||
key: ${{ runner.os }}-SvelteKit
|
Loading…
Add table
Add a link
Reference in a new issue