-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (28 loc) · 828 Bytes
/
Copy pathmain.yml
File metadata and controls
33 lines (28 loc) · 828 Bytes
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
name: Module Builder
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Zip Files
working-directory: ./
run: zip -r ./TokenLightCondition.zip ./*
- 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: false
prerelease: false
token: ${{secrets.GITHUB_TOKEN}}
artifacts: './TokenLightCondition.zip, ./module.json'
tag: ${{ steps.get-version.outputs.version }}