Create web artifacts to publish manually. #34
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: Generate Web Artifacts | |
run-name: Create web artifacts to publish manually. | |
permissions: | |
contents: write | |
pages: write | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Check out Repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Installing the project dependencies | |
run: npm ci | |
- name: Building the project | |
run: npm run build | |
- name: Upload the website | |
uses: actions/upload-artifact@v4 | |
with: | |
name: offline-website | |
path: out/renderer/ | |
if-no-files-found: error | |
overwrite: true |