mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-04-18 18:45:09 +02:00
ci: add viewer artifact
This commit is contained in:
parent
00b93c507d
commit
7c13d850b7
1 changed files with 27 additions and 0 deletions
27
.github/workflows/MinedMap.yml
vendored
27
.github/workflows/MinedMap.yml
vendored
|
@ -83,3 +83,30 @@ jobs:
|
|||
with:
|
||||
name: 'MinedMap-${{ steps.tag.outputs.tag }}-${{ matrix.label }}'
|
||||
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'
|
||||
|
|
Loading…
Add table
Reference in a new issue