]> git.openstreetmap.org Git - nominatim-ui.git/blob - .github/workflows/release.yml
Merge remote-tracking branch 'upstream/master'
[nominatim-ui.git] / .github / workflows / release.yml
1 name: "Release packaging"
2
3 on:
4   release:
5     types: [published]
6
7 jobs:
8   build:
9
10     name: Build
11     runs-on: ubuntu-latest
12     steps:
13       - uses: actions/checkout@v2
14
15       - uses: actions/setup-node@v2
16         with:
17           node-version: '10.x'
18
19       - name: Install dependencies
20         run: yarn install
21
22       - name: Package
23         run: |
24           yarn build
25           export VERSION=${GITREF/*v/}
26           mkdir nominatim-ui-${VERSION}
27           mv dist LICENSE README.md screenshot.png nominatim-ui-${VERSION}/
28           mkdir artifacts
29           tar czf artifacts/nominatim-ui-${VERSION}.tar.gz nominatim-ui-${VERSION}
30           zip -qr artifacts/nominatim-ui-${VERSION}.zip nominatim-ui-${VERSION}
31         shell: bash
32         env:
33           GITREF: ${{ github.ref }}
34
35
36       - uses: AButler/upload-release-assets@v2.0
37         with:
38           files: 'artifacts/*'
39           repo-token: ${{ secrets.GITHUB_TOKEN }}