-
Notifications
You must be signed in to change notification settings - Fork 13
32 lines (31 loc) · 1015 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on:
push:
tags:
- "v*"
permissions:
contents: write
name: Publish
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: install dependencies
run: npm install .
- name: build mods
run: npm run build
- name: package
if: startsWith(github.ref, 'refs/tags/')
run: |
npm run package
tar --exclude *.zip --exclude versions.md -caf ./out/Jakobs-Collection-${{ github.ref_name }}.zip -C ./out/ *
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
body: Download [Jakobs-Collection-${{ github.ref_name }}.zip](https://github.com/jakobharder/anno-1800-jakobs-mods/releases/download/${{ github.ref_name }}/Jakobs-Collection-${{ github.ref_name }}.zip) for the complete package.
files: ./out/*.zip