-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (35 loc) · 1 KB
/
pre-release.yaml
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
33
34
35
36
name: Pre release
on:
push:
tags:
- "v*-rc*"
permissions:
contents: write
jobs:
pre_release_lmml:
name: Publish Pre Release LMML
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Build ZIP file
run: |
mkdir -p Packages-Out/
7z a ../Packages-Out/vikingstudios-airport-lmml-malta.zip ./Packages/vikingstudios-airport-lmml-malta/
cd ../..
- name: Delete old GitHub Pre-Release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ github.token }}
tag: "v*-rc*" # Delete all pre-releases
assets: "*"
fail-if-no-assets: false
- name: Create Release
id: create_release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
draft: false
prerelease: true
files: ../Packages-Out/vikingstudios-airport-lmml-malta.zip