-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 894 Bytes
/
main.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
name: Module Builder
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Zip Files
working-directory: ./
run: zip -r ./module.zip ./src/actor-sheet-locker/*
- name: Get Version
shell: bash
id: get-version
run: echo "version=$(node ./.github/workflows/get-version.js)" >> $GITHUB_OUTPUT
- name: Create Release
id: create-release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
name: Release ${{ steps.get-version.outputs.version }}
draft: true
prerelease: false
token: ${{secrets.GITHUB_TOKEN}}
artifacts: './module.zip, ./src/actor-sheet-locker/module.json'
tag: ${{ steps.get-version.outputs.version }}