]> git.openstreetmap.org Git - nominatim-ui.git/blob - .github/workflows/release.yml
prepare v3.5.0 release
[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@v3
14
15       - uses: actions/setup-node@v3
16         with:
17           node-version: '16.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: softprops/action-gh-release@v1
37         with:
38           files: 'artifacts/*'