ci: add viewer artifact

This commit is contained in:
Matthias Schiffer 2021-12-19 23:19:56 +01:00
parent 00b93c507d
commit 7c13d850b7
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C

View file

@ -83,3 +83,30 @@ jobs:
with: with:
name: 'MinedMap-${{ steps.tag.outputs.tag }}-${{ matrix.label }}' name: 'MinedMap-${{ steps.tag.outputs.tag }}-${{ matrix.label }}'
path: 'build/pkg' path: 'build/pkg'
viewer:
name: 'Package viewer'
runs-on: 'ubuntu-20.04'
steps:
- name: 'Checkout'
uses: 'actions/checkout@v2'
- name: 'Get version'
id: 'tag'
run: |
set -o pipefail
git fetch --prune --unshallow
git describe --abbrev=7 --match='v*' | sed 's/^v/::set-output name=tag::/'
- name: 'Install'
run: |
pkgdir='build/pkg/MinedMap-${{ steps.tag.outputs.tag }}-viewer'
mkdir -p "$pkgdir"
cp -r viewer/* "$pkgdir"/
- name: 'Archive'
uses: 'actions/upload-artifact@v2'
with:
name: 'MinedMap-${{ steps.tag.outputs.tag }}-viewer'
path: 'build/pkg'