-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from DatepollSystems/layout-v2
Layout v2
- Loading branch information
Showing
165 changed files
with
5,084 additions
and
5,651 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: preview | ||
|
||
on: [pull_request] | ||
|
||
# This allows a subsequently queued workflow run to interrupt previous runs | ||
concurrency: | ||
group: 'preview-${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-lava: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: dafnik/setup-node-pnpm@v3 | ||
with: | ||
install-ignore-scripts: true | ||
|
||
- name: Build | ||
run: pnpm build:lava | ||
|
||
- name: Upload lava build artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: lava | ||
path: dist | ||
|
||
# Deploy job | ||
deploy-lava-preview: | ||
name: Deploy lava preview | ||
needs: build-lava | ||
|
||
permissions: | ||
pull-requests: write | ||
actions: read | ||
|
||
# Deploy to the preview environment | ||
environment: | ||
name: preview-${{ github.event.number }} | ||
url: ${{ steps.deploy-preview.outputs.url }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: lava | ||
path: dist | ||
|
||
- name: deploy preview | ||
id: deploy-preview | ||
uses: dafnik/ssp@v1 | ||
with: | ||
host: preview.dafnik.me | ||
username: ${{ secrets.PREVIEW_SSH_USER }} | ||
key: ${{ secrets.PREVIEW_SSH_PRIVATE_KEY }} | ||
port: ${{ secrets.PREVIEW_SSH_PORT }} | ||
source: dist/* | ||
target: /var/www/share/preview | ||
strip_components: 3 |
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
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
Oops, something went wrong.