-
Notifications
You must be signed in to change notification settings - Fork 46
42 lines (41 loc) · 1.21 KB
/
website.yaml
File metadata and controls
42 lines (41 loc) · 1.21 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
name: Build Website
on:
push:
branches: ['develop']
paths:
- spellsource-web/**
- build.gradle
- .github/workflows/website.yaml
- yarn.lock
jobs:
build-and-deploy-website:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
lfs: true
- run: git lfs checkout
- name: Checkout public submodules
run: |
git config --global url."https://github.com/".insteadOf "git@github.com:"
git submodule update --init vertx-jooq-fork spellsource-ts-proto/ts-proto
- uses: actions/setup-java@v4
with:
java-version: '24'
distribution: temurin
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Set Project Version
run: |
COMMIT_SHA=$(git rev-parse --short=7 HEAD)
TIMESTAMP=$(date +%s)
echo "PROJECT_VERSION=${COMMIT_SHA}-${TIMESTAMP}" >> $GITHUB_ENV
- name: Build and push website image
run: ./gradlew spellsource-web:githubDockerPush
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_VERSION: ${{ env.PROJECT_VERSION }}