Merge branch 'dev' #2
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
name: Update Resources | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
observer: | |
name: Update Observer | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [20] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Install Dependencies | |
run: npm i | |
- name: Build Resources | |
run: npm run build-client | |
- name: Upload Static Artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: 'client_build/' | |
- name: Deploy Site to Github Pages | |
id: deploy | |
uses: actions/deploy-pages@v2 | |
server: | |
name: Build Server | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [20] | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install Dependencies | |
run: npm i | |
- name: Build Resources | |
run: npm run build-server | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: 'Server Builds' | |
path: 'server_build' |