Add back yaml for pages deployment #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: Deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: npm ci | |
shell: bash | |
run: npm ci | |
- name: nue build | |
shell: bash | |
run: npm exec --no @neutralinojs/neu -- build --release | |
- name: upload artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: linux | |
path: ./dist | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: npm ci | |
shell: pwsh | |
run: npm ci | |
- name: nue build | |
shell: pwsh | |
run: npm exec --no @neutralinojs/neu -- build --release | |
- name: upload artifact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: windows | |
path: ./dist | |
deploy-web: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: npm ci | |
shell: bash | |
run: npm ci | |
- name: npm run build | |
shell: bash | |
run: npm run build | |
- name: upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: ./dist | |
- name: deploy to github pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |