-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (35 loc) · 965 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Deploy application to GitHub Pages
on: workflow_dispatch
jobs:
Build-And-Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: latest
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install Dependencies
run: pnpm install
shell: sh
- name: Build Application
run: pnpm run build
shell: sh
- name: Archive Application
run: |
tar \
--dereference --hard-dereference \
--directory "/dist" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
shell: sh
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: contrast-app
path: ${{ runner.temp }}/artifact.tar
retention-days: 1
if-no-files-found: error