Skip to content

Commit

Permalink
[wip] preview
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Feb 25, 2023
1 parent fb24ae0 commit a34c638
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Preview

on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
build-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm ci
- run: npm run dist
- name: Store pull request number for later use
run: |
echo ${{github.event.number}} > dist/pr_number
- uses: actions/checkout@v3
with:
repository: openstreetmap/iD
path: './iD'
- run: npm ci
working-directory: './iD'
- run: npm run dist
working-directory: './iD'
env:
ID_PRESETS_CDN_URL: '../../'

- uses: actions/upload-artifact@v3
with:
name: preview
path: |
dist
iD/dist

0 comments on commit a34c638

Please sign in to comment.