-
-
Notifications
You must be signed in to change notification settings - Fork 79
60 lines (51 loc) · 2.12 KB
/
pull-request-check.yml
File metadata and controls
60 lines (51 loc) · 2.12 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: pull-request-check
# This workflow can be used for pushing to the production server and will only be ran when code is pushed to the main branch
on:
pull_request:
branches: [main]
concurrency:
# github.workflow: name of the workflow
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request
group: ${{ github.workflow }}-${{ github.ref }}
# Cancel in-progress runs when a new workflow with the same group name is triggered
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container: node:24
steps:
- uses: actions/checkout@v2
- name: Install Node.js dependencies
run: |
npm i -g pnpm
pnpm i
- name: Get short SHA
id: slug
run: |
git config --global --add safe.directory /__w/nerimity-web/nerimity-web
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build App
run: pnpm run build
env:
VITE_SERVER_URL: "https://nerimity.com"
VITE_APP_URL: "https://latest.nerimity.com"
VITE_MOBILE_WIDTH: 850
VITE_TURNSTILE_SITEKEY: "0x4AAAAAAABO1ilip_YaVHJk"
VITE_APP_VERSION: ${{ steps.slug.outputs.sha_short }}
VITE_EMOJI_URL: "https://nerimity.com/twemojis/"
VITE_NERIMITY_CDN: "https://cdn.nerimity.com/"
VITE_GOOGLE_CLIENT_ID: "833085928210-2ksk1asgbmqvsg6jb3es4asnmug2a4iu.apps.googleusercontent.com"
VITE_GOOGLE_API_KEY: "AIzaSyAPeozJV7itoZk9Fk1VYbFCDMMXB-gU38M"
- name: Zip The Build
uses: vimtor/action-zip@v1
with:
files: dist/
dest: dangerous-chat-client.zip
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: dangerous-client-build
path: dangerous-chat-client.zip
retention-days: 5