-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
51 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: "Build application" | ||
description: "Build and compile all the assets required to run the application in the container" | ||
inputs: | ||
component: | ||
description: "The backend component to build" | ||
required: true | ||
artifact-name: | ||
description: "The artifact name to store the build cache under" | ||
required: true | ||
default: backend-build | ||
outputs: | ||
artifact-id: | ||
description: "The artifact id for the artifact that was just uploaded or empty if the artifact upload failed." | ||
value: ${{ steps.upload.outputs.artifact-id }} | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Pull repository | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node | ||
id: node | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: npm | ||
node-version: 18 | ||
|
||
- name: Install Node dependencies | ||
id: install | ||
shell: bash | ||
working-directory: backend/${{ inputs.component }} | ||
run: npm install --include-workspace-root | ||
|
||
- name: Archive distribution artifact | ||
id: upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.artifact-name }}-${{ inputs.component }} | ||
retention-days: 7 | ||
path: | | ||
express/dist | ||
express/resources | ||
express/src/views | ||
express/assets/images | ||
express/package*.json | ||
express/manifest.yml |
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